git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ephrim Khong <dr.khong@gmail.com>
To: git@vger.kernel.org
Subject: git blame: "Not Committed Yet" with clean WD
Date: Thu, 13 Feb 2014 10:08:55 +0100	[thread overview]
Message-ID: <52FC8BA7.30102@gmail.com> (raw)

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

             reply	other threads:[~2014-02-13  9:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-13  9:08 Ephrim Khong [this message]
2014-02-14 19:10 ` git blame: "Not Committed Yet" with clean WD 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52FC8BA7.30102@gmail.com \
    --to=dr.khong@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).