All of lore.kernel.org
 help / color / mirror / Atom feed
* git-diff-tree --root
@ 2014-09-12 13:06 Roman Neuhauser
  2014-09-12 17:31 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Roman Neuhauser @ 2014-09-12 13:06 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-15 17:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-12 13:06 git-diff-tree --root Roman Neuhauser
2014-09-12 17:31 ` Junio C Hamano
2014-09-13  8:57   ` Roman Neuhauser
2014-09-15 17:04     ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.