Teach core.autocrlf to 'git blame'
Pass the fake commit through convert_to_git, so that the file is adjusted for local line-ending convention. Signed-off-by: Marius Storm-Olsen <marius@trolltech.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Marius Storm-Olsen committed
Oct 17, 2007 at 12:57 UTC
8f353ee57a2f79697f8dea80ad3174998586bc75
1 file changed
+1
builtin-blame.c
+1
@@ -2059,6 +2059,7 @@ static struct commit *fake_working_tree_commit(const char *path, const char *con
2059
if (strbuf_read(&buf, 0, 0) < 0)
2060
die("read error %s from stdin", strerror(errno));
2061
}
2062
+ convert_to_git(path, buf.buf, buf.len, &buf);
2063
origin->file.ptr = buf.buf;
2064
origin->file.size = buf.len;
2065
pretend_sha1_file(buf.buf, buf.len, OBJ_BLOB, origin->blob_sha1);