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
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jan 12, 2012, 09:14 UTC
Message-ID
<vpq39bll1ua.fsf@bauges.imag.fr>
In-Reply-To
<1326359371-13528-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
Show 7 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 find this very, very unintuitive. I tried with GNU diff:
diff 1 2 3 4
and it complained with "diff: extra operand `3'". I find

git diff --no-index file1.old file1.new git diff --no-index file2.old file2.new

far more intuitive, less error prone (when you start having a non-trivial list of arguments, it's hard to tell which is the new and which is the old visually), ... So I'm curious why you prefer your syntax.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Nguyễn Thái Ngọc DuyNext: Nguyen Thai Ngoc Duy
Message 2 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.