{"thread":{"id":"10159","subject":"[PATCH] Teach core.autocrlf to 'git blame'","startedAt":"2007-10-05T12:13:31Z","lastAt":"2007-10-17T10:57:47Z","messageCount":2,"participants":["Marius Storm-Olsen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"54941","messageId":"1191586411-7436-1-git-send-email-marius@trolltech.com","threadId":"10159","inReplyTo":null,"subject":"[PATCH] Teach core.autocrlf to 'git blame'","fromName":"Marius Storm-Olsen","fromEmail":"marius@trolltech.com","sentAt":"2007-10-05T12:13:31Z","receivedAt":"2007-10-05T12:13:31Z","isPatch":true,"sender":{"key":"marius@trolltech.com","avatar":"https://gravatar.com/avatar/a40071d8f651862c6ab10bd7996f0ad84d94f06c0399de9e3fa4f06beb390a71?d=mp&s=160"},"body":"Pass the fake commit through convert_to_git, so that the\nfile is adjusted for local line-ending convention.\n\nSigned-off-by: Marius Storm-Olsen <marius@trolltech.com>\n---\n Added missing signoff in the previous mail.\n\n builtin-blame.c |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/builtin-blame.c b/builtin-blame.c\nindex e3112a2..8432b82 100644\n--- a/builtin-blame.c\n+++ b/builtin-blame.c\n@@ -2059,6 +2059,7 @@ static struct commit *fake_working_tree_commit(const char *path, const char *con\n \t\tif (strbuf_read(&buf, 0, 0) < 0)\n \t\t\tdie(\"read error %s from stdin\", strerror(errno));\n \t}\n+\tconvert_to_git(path, buf.buf, buf.len, &buf);\n \torigin->file.ptr = buf.buf;\n \torigin->file.size = buf.len;\n \tpretend_sha1_file(buf.buf, buf.len, OBJ_BLOB, origin->blob_sha1);\n-- \n1.5.3.4.1155.gfe96ee-dirty\n"},{"id":"56234","messageId":"4715EAAB.3020705@trolltech.com","threadId":"10159","inReplyTo":"1191586411-7436-1-git-send-email-marius@trolltech.com","subject":"Re: [PATCH] Teach core.autocrlf to 'git blame'","fromName":"Marius Storm-Olsen","fromEmail":"marius@trolltech.com","sentAt":"2007-10-17T10:57:47Z","receivedAt":"2007-10-17T10:57:47Z","isPatch":true,"sender":{"key":"marius@trolltech.com","avatar":"https://gravatar.com/avatar/a40071d8f651862c6ab10bd7996f0ad84d94f06c0399de9e3fa4f06beb390a71?d=mp&s=160"},"body":"Just a reminder of this one, as I didn't see it any \"What's in\" \nreports, nor your http://repo.or.cz/w/git/spearce.git repo.\n(It's normal git.git patch, not an msysgit patch :-)\n\n-- \n.marius\n\nMarius Storm-Olsen said the following on 05.10.2007 14:13:\n> Pass the fake commit through convert_to_git, so that the\n> file is adjusted for local line-ending convention.\n> \n> Signed-off-by: Marius Storm-Olsen <marius@trolltech.com>\n> ---\n>  Added missing signoff in the previous mail.\n> \n>  builtin-blame.c |    1 +\n>  1 files changed, 1 insertions(+), 0 deletions(-)\n> \n> diff --git a/builtin-blame.c b/builtin-blame.c\n> index e3112a2..8432b82 100644\n> --- a/builtin-blame.c\n> +++ b/builtin-blame.c\n> @@ -2059,6 +2059,7 @@ static struct commit *fake_working_tree_commit(const char *path, const char *con\n>  \t\tif (strbuf_read(&buf, 0, 0) < 0)\n>  \t\t\tdie(\"read error %s from stdin\", strerror(errno));\n>  \t}\n> +\tconvert_to_git(path, buf.buf, buf.len, &buf);\n>  \torigin->file.ptr = buf.buf;\n>  \torigin->file.size = buf.len;\n>  \tpretend_sha1_file(buf.buf, buf.len, OBJ_BLOB, origin->blob_sha1);\n\n\n"}]}