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

Re: Strange diff behavior?

From: Jason Sewall <hidden>
Date: 2016-06-15 22:43:17

Ok, it was my bad. There *were* whitespaces on those lines, but in
HEAD^, not head. Git only cares when they are introduced, not when
they are removed. So git diff HEAD^..HEAD showed that strange line
removal/add but git diff HEAD..HEAD^ shows me the whitespace.

I recently set up emacs to strip whitespace whenever I save a file to
prevent git from complaining (and it's good practice anyway), so that
explains why I didn't expect the change

Sorry about the mixup, and thanks for your help.

On 6/21/07, Johannes Schindelin [off-list ref] wrote:
Hi,

On Thu, 21 Jun 2007, Raimund Bauer wrote:
quoted
On Thu, 2007-06-21 at 02:13 +0100, Johannes Schindelin wrote:
quoted
Just a guess: core.autocrlf=true?
My guess: apply.whitespace=strip
Much better guess, I guess. Jason?

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help