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

Re: an option to make "git-diff Z A" prints Z's diff before A's

From
Karl Hasselström <kha@treskal.com>
Date
Oct 26, 2006, 08:42 UTC
Message-ID
<20061026084221.GB13780@diana.vm.bytemark.co.uk>
In-Reply-To
<7vd58g9pfs.fsf@assigned-by-dhcp.cox.net>
On 2006-10-25 12:16:07 -0700, Junio C Hamano wrote:
Show 9 quoted lines
> The thing is, "git diff -- Z A" does *not* mean:
>
>       I know I have a file called Z and a file called A; please give
>       diff for these files.
>
> What it means is:
>
>       Please give me the diff as usual, but I care about paths that
>       match these patterns, Z or A.

A related question: is there a way to limit the path to Z, but excluding Z/B? That is, I'm interested in the changes in Z, but not the changes in its subdirectory B.

-- 
Karl Hasselström, kha@treskal.com
Previous: Junio C HamanoNext: Linus Torvalds
Message 3 of 4 in “an option to make "git-diff Z A" prints Z's diff before A's”
  1. Jim MeyeringOct 25, 2006
  2. Junio C HamanoOct 25, 2006
  3. Karl HasselströmOct 26, 2006
  4. Linus TorvaldsOct 26, 2006

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.