Thread (10 messages) flat view 10 messages, 4 authors, 2016-06-15

Re: Diffs "from" working directory

From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-06-15 22:42:12


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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help