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

Re: How can I restrict git-diff to a specific set of directories?

From
Boyd Stephen Smith Jr. <bss@iguanasuicide.net>
Date
Jan 14, 2009, 00:02 UTC
Message-ID
<200901131802.33879.bss@iguanasuicide.net>
In-Reply-To
<1231890543.31432.5.camel@rotwang.fnordora.org>
On Tuesday 2009 January 13 17:49:03 Alan wrote:
Show 5 quoted lines
>I need to generate a diff
>between one commit and another, but only for the contents of a specific
>directory.
>
>I am not finding a real straightforward way to do that.

I think: git diff one_commit another -- specific/directory is supposed to do what you want. However, I've never used it myself.

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss@iguanasuicide.net                     ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.net/                      \_/     
Previous: Alan
Message 4 of 4 in “How can I restrict git-diff to a specific set of directories?”
  1. AlanJan 13, 2009
  2. Björn SteinbrinkJan 14, 2009
  3. AlanJan 14, 2009
  4. Boyd Stephen Smith Jr.Jan 14, 2009

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.