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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux