git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git blame: "Not Committed Yet" with clean WD
@ 2014-02-13  9:08 Ephrim Khong
  2014-02-14 19:10 ` brian m. carlson
  0 siblings, 1 reply; 4+ messages in thread
From: Ephrim Khong @ 2014-02-13  9:08 UTC (permalink / raw)
  To: git

Hi,

for files that contain windows line endings in a repository with 
core.autocrlf=input, git blame will show lines as "Not Committed Yet", 
even though they were not modified.

Example:

--
git init
git config core.autocrlf false
echo "foo" > a
unix2dos a
git add a
git commit -m "initial commit"
git config core.autocrlf input
git status
git blame a
--

Output:

--
Reinitialized existing Git repository in /.../testblame2/.git/
unix2dos: converting file a to DOS format ...
On branch master
nothing to commit, working directory clean
On branch master
nothing to commit, working directory clean
00000000 (Not Committed Yet 2014-02-13 10:02:43 +0100 1) foo
--

Is there an easy way to work around this; is this desired behaviour or 
mor a bug?

Thanks - Eph

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

end of thread, other threads:[~2014-02-19 20:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-13  9:08 git blame: "Not Committed Yet" with clean WD Ephrim Khong
2014-02-14 19:10 ` brian m. carlson
2014-02-18 19:45   ` [PATCH] blame: add a failing test for a CRLF issue brian m. carlson
2014-02-19 20:16     ` 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).