Re: Diffs "from" working directory
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Nov 20, 2005, 18:13 UTC
- Message-ID
- <Pine.LNX.4.64.0511201010490.13959@g5.osdl.org>
- In-Reply-To
- <20051120174359.GA24177@fieldses.org>
On Sun, 20 Nov 2005, J. Bruce Fields wrote:
> > That's a diff *to* the working directory. My complaint was that there > wasn't a convenient way to get a diff *from* the working directory.
Something like
git diff -R -M -p
should do it, no?
("git diff" has the strange property that if you give it any diff flags at all, it forgets all the default ones. So it defaults to "-M -p", but if you just say "-R", it will drop its own defaults, and use _just_ "-R").
[ Which is almost certainly not what most users want, but it's practical when you want to get the internal git format. Whether that is important enough to confuse users or not, I dunno ]
Linus