From: Roman Neuhauser <neuhauser@sigpipe.cz>
To: git@vger.kernel.org
Subject: git-diff-tree --root
Date: Fri, 12 Sep 2014 15:06:07 +0200 [thread overview]
Message-ID: <20140912130607.GX4075@isis.sigpipe.cz> (raw)
hello,
git-diff-tree without --root is absolutely silent for the root commit,
and i see no bad effects of --root on non-root commits. are there any
hidden gotchas? IOW, why is the --root behavior not the default?
cram[1] testcase::
$ git init -q scratch
$ cd scratch
$ echo '.*.sw?' > .gitignore
$ git add .gitignore
$ git commit -q -m init .gitignore
$ git diff-tree HEAD
$ git diff-tree --root HEAD
[0-9a-z]{40} (re)
:000000 100644 0000000000000000000000000000000000000000 [0-9a-z]{40} A\\t.* (re)
[1] https://pypi.python.org/pypi/cram
--
roman
next reply other threads:[~2014-09-12 13:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-12 13:06 Roman Neuhauser [this message]
2014-09-12 17:31 ` git-diff-tree --root Junio C Hamano
2014-09-13 8:57 ` Roman Neuhauser
2014-09-15 17:04 ` Junio C Hamano
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=20140912130607.GX4075@isis.sigpipe.cz \
--to=neuhauser@sigpipe.cz \
--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).