* How can I restrict git-diff to a specific set of directories?
@ 2009-01-13 23:49 Alan
2009-01-14 0:02 ` Björn Steinbrink
2009-01-14 0:02 ` Boyd Stephen Smith Jr.
0 siblings, 2 replies; 4+ messages in thread
From: Alan @ 2009-01-13 23:49 UTC (permalink / raw)
To: git
I have a repository that I need to build a set of patches for a single
directory path. (I just want the diffs on the one driver.)
Is there a clean non-hacky way to do this?
It is not cross repository or anything. I just 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. (Unless I am
missing something, which is quite possible.)
Thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How can I restrict git-diff to a specific set of directories?
2009-01-13 23:49 How can I restrict git-diff to a specific set of directories? Alan
@ 2009-01-14 0:02 ` Björn Steinbrink
2009-01-14 0:33 ` Alan
2009-01-14 0:02 ` Boyd Stephen Smith Jr.
1 sibling, 1 reply; 4+ messages in thread
From: Björn Steinbrink @ 2009-01-14 0:02 UTC (permalink / raw)
To: Alan; +Cc: git
On 2009.01.13 15:49:03 -0800, Alan wrote:
> I have a repository that I need to build a set of patches for a single
> directory path. (I just want the diffs on the one driver.)
>
> Is there a clean non-hacky way to do this?
>
> It is not cross repository or anything. I just 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. (Unless I am
> missing something, which is quite possible.)
git diff commitA commitB -- some/paths/here some/more/here and/then/some
That limits the diff to the paths after the dashes.
Björn
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How can I restrict git-diff to a specific set of directories?
2009-01-14 0:02 ` Björn Steinbrink
@ 2009-01-14 0:33 ` Alan
0 siblings, 0 replies; 4+ messages in thread
From: Alan @ 2009-01-14 0:33 UTC (permalink / raw)
To: Björn Steinbrink; +Cc: git
On Wed, 2009-01-14 at 01:02 +0100, Björn Steinbrink wrote:
> On 2009.01.13 15:49:03 -0800, Alan wrote:
> > I have a repository that I need to build a set of patches for a single
> > directory path. (I just want the diffs on the one driver.)
> >
> > Is there a clean non-hacky way to do this?
> >
> > It is not cross repository or anything. I just 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. (Unless I am
> > missing something, which is quite possible.)
>
> git diff commitA commitB -- some/paths/here some/more/here and/then/some
>
> That limits the diff to the paths after the dashes.
Thanks! That is EXACTLY what I need.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How can I restrict git-diff to a specific set of directories?
2009-01-13 23:49 How can I restrict git-diff to a specific set of directories? Alan
2009-01-14 0:02 ` Björn Steinbrink
@ 2009-01-14 0:02 ` Boyd Stephen Smith Jr.
1 sibling, 0 replies; 4+ messages in thread
From: Boyd Stephen Smith Jr. @ 2009-01-14 0:02 UTC (permalink / raw)
To: Alan; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 592 bytes --]
On Tuesday 2009 January 13 17:49:03 Alan wrote:
>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/ \_/
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-01-14 0:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-13 23:49 How can I restrict git-diff to a specific set of directories? Alan
2009-01-14 0:02 ` Björn Steinbrink
2009-01-14 0:33 ` Alan
2009-01-14 0:02 ` Boyd Stephen Smith Jr.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox