{"thread":{"id":"653","subject":"git-diff-tree updates..","startedAt":"2005-05-18T20:28:03Z","lastAt":"2005-05-18T20:28:03Z","messageCount":1,"participants":["Linus Torvalds"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"3513","messageId":"Pine.LNX.4.58.0505181316330.18337@ppc970.osdl.org","threadId":"653","inReplyTo":null,"subject":"git-diff-tree updates..","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2005-05-18T20:28:03Z","receivedAt":"2005-05-18T20:28:03Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\nI've just fixed two annoyances of mine with git-diff-tree, which sadly \ncaused me to break some syntax.\n\nIn particular, diff-tree for some unfathomable reason (probably incipient \nbraindamage in yours truly) used a single dash \"-\" to mark the end of \ncommand line arguments, rather than the \"--\" that everybody else uses.\n\nI hope nobody depended on it, because I fixed it.\n\nThe other thing I did was to allow a single SHA1, and then consider that \nto be equivalent to a one-line \"--stdin\" thing. Ie you can now do\n\n\tgit-diff-tree -v -p HEAD\n\nand it will do what you'd expect it to do, ie it should be equivalent to\n\n\tcat .git/HEAD | git-diff-tree -v -p --stdin\n\n(apart from a silly bug which I'll fix shortly).\n\nThe latter means that if you actually want to track a _file_ named HEAD\n(or anything else that might trigger as a reference), you'd need to do\n\n\tgit-rev-list HEAD | git-diff-tree -v -p --stdin -- HEAD\n\nbut I'm considering making the single-dash thing be equivalent to \nthe combination \"--stdin\", and not allow SHA1 naming after it, so that \nthis could be shortened to just be\n\n\tgit-rev-list HEAD | git-diff-tree -v -p - HEAD\n\n(but I wanted to make the \"-\" semantics change be a two-phase thing).\n\n\t\tLinus\n"}]}