git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] diff --no-index: support more than one file pair

From
NKNeal 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

Previous: Matthieu Moy
Message 7 of 7 in “diff --no-index: support more than one file pair”
  1. diff --no-index: support more than one file pairNguyễn Thái Ngọc Duy, Jan 12, 2012
  2. Matthieu MoyJan 12, 2012
  3. Nguyen Thai Ngoc DuyJan 12, 2012
  4. Matthieu MoyJan 12, 2012
  5. Nguyen Thai Ngoc DuyJan 12, 2012
  6. Matthieu MoyJan 12, 2012
  7. Neal KreitzingerJan 12, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.