git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git blame breaking on repository with CRLF files
@ 2015-08-07 16:32 Benkstein, Frank
  2015-08-08  5:58 ` Torsten Bögershausen
  0 siblings, 1 reply; 7+ messages in thread
From: Benkstein, Frank @ 2015-08-07 16:32 UTC (permalink / raw)
  To: git

Hello,

I am working working on Linux and am examining code in a git repository I do
not know much about.  I am only looking at files, not changing anything.  On
some files in the repository I get "00000000 (Not Committed Yet" for all lines
when running "git blame".  I checked with "git status", "git reset", "git
clean" that the files are indeed in the repository and unmodified.  I noticed
that this only happens with git v2.5.0.  With git v2.4.0 it looks correct, i.e.
the output has proper commit ids, Author names and dates..  With "git bisect" I
tracked this down to the following commit:

 commit 4bf256d67a85bed1e175ecc2706322eafe4489ca (HEAD, refs/bisect/bad)
 Author: Torsten Bögershausen <tboegi@web.de>
 Date:   Sun May 3 18:38:01 2015 +0200

     blame: CRLF in the working tree and LF in the repo

Digging further, it seems that most files in the repository are checked in with
CRLF line endings.  In my working tree these are checked out as LF - which
seems to be the exact opposite situation of what the commit is trying to
address.  When I set "core.autocrlf" to "false" I also get the correct behavior
of "git blame" - this is a workaround as long as I do not have to actually
modify anything.

Best regards,
Frank.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-08-10 23:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-07 16:32 git blame breaking on repository with CRLF files Benkstein, Frank
2015-08-08  5:58 ` Torsten Bögershausen
2015-08-09 20:19   ` Torsten Bögershausen
2015-08-10  8:36     ` Benkstein, Frank
2015-08-10 23:54       ` brian m. carlson
2015-08-10 18:48     ` Junio C Hamano
2015-08-10 20:22       ` Torsten Bögershausen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).