Re: [PATCH] diff --no-index: support more than one file pair
- From
- Neal Kreitzinger <nkreitzinger@gmail.com>
- Date
- Jan 12, 2012, 16:37 UTC
- Message-ID
- <4F0F0C51.3050706@gmail.com>
- In-Reply-To
- <1326359371-13528-1-git-send-email-pclouds@gmail.com>
On 1/12/2012 3:09 AM, Nguyễn Thái Ngọc Duy wrote:
Show 8 quoted lines
> This allows you to do > > git diff --no-index file1.old file1.new file2.old file2.new... > > It could be seen as an abuse of "git --no-index", but it's very > tempting considering many bells and whistles git's diff machinery > provides. >
I see that git-diff can be used in place of linux diff for totally untracked file pairs (which is kind of neat, I guess, if you're partial to git like I am and would probably prefer to use it as your primary file-system interface if you could). I assume this new syntax implies manual usage since scripting this input is less straightforward than iterating thru a single pair via xargs, etc. In that context, I also see that git-difftool doesn't bring up kdiff3 (or whatever) but just does a text diff (git 1.7.1) which is mildly disappointing for mere mortals like myself who prefer to read side-by-side gui diffs over text diffS. This, of course, is also preference for someone like me who wouldn't mind prefixing all of my commands with "git " ;-)
v/r, neal