Re: Strange diff behavior?
- From
- Jason Sewall <jasonsewall@gmail.com>
- Date
- Jun 21, 2007, 16:46 UTC
- Message-ID
- <31e9dd080706210946i4821f300o55e89b67b3be562@mail.gmail.com>
- In-Reply-To
- <Pine.LNX.4.64.0706211131160.4059@racer.site>
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 <Johannes.Schindelin@gmx.de> wrote:
Show 15 quoted lines
> Hi, > > On Thu, 21 Jun 2007, Raimund Bauer wrote: > > > On Thu, 2007-06-21 at 02:13 +0100, Johannes Schindelin wrote: > > > > > Just a guess: core.autocrlf=true? > > > > My guess: apply.whitespace=strip > > Much better guess, I guess. Jason? > > Ciao, > Dscho >