Re: [PATCH/RFC] diff --relative: output paths as relative to the current subdirectory
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Feb 12, 2008, 23:53 UTC
- Message-ID
- <alpine.LFD.1.00.0802121550570.2920@woody.linux-foundation.org>
- In-Reply-To
- <7vfxvx211k.fsf@gitster.siamese.dyndns.org>
On Tue, 12 Feb 2008, Junio C Hamano wrote:
> > Your example is shorter to type as: > > (cd drivers/scsi && git diff --relative a..b --)
No it isn't. The above doesn't even work for bare repositories, or when you want to look at a branch that has a different directory structure than the currently-checked-out one.
Linus