{"thread":{"id":"17158","subject":"How can I restrict git-diff to a specific set of directories?","startedAt":"2009-01-13T23:49:03Z","lastAt":"2009-01-14T00:33:16Z","messageCount":4,"participants":["Alan","Boyd Stephen Smith Jr.","Björn Steinbrink"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"100340","messageId":"1231890543.31432.5.camel@rotwang.fnordora.org","threadId":"17158","inReplyTo":null,"subject":"How can I restrict git-diff to a specific set of directories?","fromName":"Alan","fromEmail":"alan@clueserver.org","sentAt":"2009-01-13T23:49:03Z","receivedAt":"2009-01-13T23:49:03Z","isPatch":false,"sender":{"key":"alan@clueserver.org","avatar":null},"body":"I have a repository that I need to build a set of patches for a single\ndirectory path.  (I just want the diffs on the one driver.)\n\nIs there a clean non-hacky way to do this?\n\nIt is not cross repository or anything. I just need to generate a diff\nbetween one commit and another, but only for the contents of a specific\ndirectory.\n\nI am not finding a real straightforward way to do that.  (Unless I am\nmissing something, which is quite possible.)\n\nThanks!\n"},{"id":"100343","messageId":"20090114000220.GB12624@atjola.homenet","threadId":"17158","inReplyTo":"1231890543.31432.5.camel@rotwang.fnordora.org","subject":"Re: How can I restrict git-diff to a specific set of directories?","fromName":"Björn Steinbrink","fromEmail":"b.steinbrink@gmx.de","sentAt":"2009-01-14T00:02:20Z","receivedAt":"2009-01-14T00:02:20Z","isPatch":false,"sender":{"key":"b.steinbrink@gmx.de","avatar":"https://avatars.githubusercontent.com/u/230962?v=4"},"body":"On 2009.01.13 15:49:03 -0800, Alan wrote:\n> I have a repository that I need to build a set of patches for a single\n> directory path.  (I just want the diffs on the one driver.)\n> \n> Is there a clean non-hacky way to do this?\n> \n> It is not cross repository or anything. I just need to generate a diff\n> between one commit and another, but only for the contents of a specific\n> directory.\n> \n> I am not finding a real straightforward way to do that.  (Unless I am\n> missing something, which is quite possible.)\n\ngit diff commitA commitB -- some/paths/here some/more/here and/then/some\n\nThat limits the diff to the paths after the dashes.\n\nBjörn\n"},{"id":"100342","messageId":"200901131802.33879.bss@iguanasuicide.net","threadId":"17158","inReplyTo":"1231890543.31432.5.camel@rotwang.fnordora.org","subject":"Re: How can I restrict git-diff to a specific set of directories?","fromName":"Boyd Stephen Smith Jr.","fromEmail":"bss@iguanasuicide.net","sentAt":"2009-01-14T00:02:29Z","receivedAt":"2009-01-14T00:02:29Z","isPatch":false,"sender":{"key":"bss@iguanasuicide.net","avatar":"https://gravatar.com/avatar/84b95eeff194b816c1568b1339e63e4b229825298664a9037b9f1ec713ead1e3?d=mp&s=160"},"body":"On Tuesday 2009 January 13 17:49:03 Alan wrote:\n>I need to generate a diff\n>between one commit and another, but only for the contents of a specific\n>directory.\n>\n>I am not finding a real straightforward way to do that.\n\nI think:\ngit diff one_commit another -- specific/directory\nis supposed to do what you want.  However, I've never used it myself.\n-- \nBoyd Stephen Smith Jr.                     ,= ,-_-. =. \nbss@iguanasuicide.net                     ((_/)o o(\\_))\nICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' \nhttp://iguanasuicide.net/                      \\_/     \n"},{"id":"100345","messageId":"1231893196.31432.7.camel@rotwang.fnordora.org","threadId":"17158","inReplyTo":"20090114000220.GB12624@atjola.homenet","subject":"Re: How can I restrict git-diff to a specific set of directories?","fromName":"Alan","fromEmail":"alan@clueserver.org","sentAt":"2009-01-14T00:33:16Z","receivedAt":"2009-01-14T00:33:16Z","isPatch":false,"sender":{"key":"alan@clueserver.org","avatar":null},"body":"On Wed, 2009-01-14 at 01:02 +0100, Björn Steinbrink wrote:\n> On 2009.01.13 15:49:03 -0800, Alan wrote:\n> > I have a repository that I need to build a set of patches for a single\n> > directory path.  (I just want the diffs on the one driver.)\n> > \n> > Is there a clean non-hacky way to do this?\n> > \n> > It is not cross repository or anything. I just need to generate a diff\n> > between one commit and another, but only for the contents of a specific\n> > directory.\n> > \n> > I am not finding a real straightforward way to do that.  (Unless I am\n> > missing something, which is quite possible.)\n> \n> git diff commitA commitB -- some/paths/here some/more/here and/then/some\n> \n> That limits the diff to the paths after the dashes.\n\nThanks! That is EXACTLY what I need.\n"}]}