Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9216697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:28:20+00:00 2026-06-18T02:28:20+00:00

I am trying to create a patch file to be used via reviewboard .

  • 0

I am trying to create a patch file to be used via reviewboard.
It will be the initial patch.

diff -ruN --exclude=.git empty_dir working_dir > mypatch_00.patch works but I am getting a “The selected file does not appear to be a diff.” error.

Is there any way to get it working using git-diff or diff? Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:28:21+00:00Added an answer on June 18, 2026 at 2:28 am

    If you want to get diff for your initial commit (maybe I misunderstood your question), you can display it using

    git show COMMIT
    

    Alternatively to get it as file:

    git format-patch -1 COMMIT
    

    Where COMMIT is revision of this commit. If this is your current commit as well, you don’t have to specify it at all.

    However if your commit is not initial and you want to get full diff for your history, you need to create empty branch first:

    git checkout --orphan empty         # Create orphaned branch
    git read-tree --empty               # Remove all files from index
    git commit --allow-empty -m 'Empty' # Initial commit
    

    Now you can do full diff against empty branch:

    git diff empty..master
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a patch using diff, but I can't get the patch
I am trying to create a record containing the path to a file. The
I'm trying to create a patch for cf.vim to resolve an issue with hashes.
I'm trying to create a new spinner background using a 9 patch picture. I've
Hi i'm trying to create and distribute an update/patch for my app on app
I'm trying to write/create a JSON file from a AIR app, I'm trying not
I'm trying to create an external MAML help file for a script Module. As
I am trying to create my own application definition xml file for the SharePoint
Possible Duplicate: Where will be create a new file in java, when path is
I am trying to create a WCF web service which will allow other applications

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.