{"thread":{"id":"7050","subject":"Bug in diff header generation","startedAt":"2007-03-02T12:53:50Z","lastAt":"2007-03-02T22:05:43Z","messageCount":2,"participants":["Matthias Kestenholz","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"36084","messageId":"1172840031.22581.3.camel@localhost.localdomain","threadId":"7050","inReplyTo":null,"subject":"Bug in diff header generation","fromName":"Matthias Kestenholz","fromEmail":"lists@spinlock.ch","sentAt":"2007-03-02T12:53:50Z","receivedAt":"2007-03-02T12:53:50Z","isPatch":false,"sender":{"key":"lists@spinlock.ch","avatar":null},"body":"Hello,\n\nI've encountered a small error in the diff header generation when\ndiffing against files which are not tracked by git:\n\n\n[13:49] mk@crap ~/Projects/git > git diff git.c ~/bin/viname|head\ndiff --git a/git.c b/home/mk/bin/viname\nold mode 100644\nnew mode 100755\nindex 008e016..b64857e\n--- a/git.c\n+++ b/home/mk/bin/viname\n@@ -1,416 +1,106 @@\n-#include \"builtin.h\"\n-#include \"exec_cmd.h\"\n-#include \"cache.h\"\n[13:49] mk@crap ~/Projects/git > git diff HEAD:git.c ~/bin/viname|head\ndiff --git a/home/mk/bin/viname b/home/mk/bin/viname\nindex 008e016..b64857e 100755\n--- a/home/mk/bin/viname\n+++ b/home/mk/bin/viname\n@@ -1,416 +1,106 @@\n-#include \"builtin.h\"\n-#include \"exec_cmd.h\"\n-#include \"cache.h\"\n-#include \"quote.h\"\n-\n\n\nWhen a revision is specified, git-diff prints a/home/mk/bin/viname\ninstead of a/git.c\n\nBecause of my final exams I've got no time to look into it right now.\n\n\nMatthias\n"},{"id":"36132","messageId":"Pine.LNX.4.63.0703022254320.22628@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"7050","inReplyTo":"1172840031.22581.3.camel@localhost.localdomain","subject":"Re: Bug in diff header generation","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-03-02T22:05:43Z","receivedAt":"2007-03-02T22:05:43Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Fri, 2 Mar 2007, Matthias Kestenholz wrote:\n\n> [13:49] mk@crap ~/Projects/git > git diff HEAD:git.c ~/bin/viname|head\n> diff --git a/home/mk/bin/viname b/home/mk/bin/viname\n\nThis is intended behaviour. You don't want a Git object name as a file \nspecifier, because you cannot edit a Git object.\n\nHth,\nDscho\n"}]}