config option log.showroot to show the diff of root commits

This allows one to see a root commit as a diff in commands like git-log,
git-show and git-whatchanged.

Signed-off-by: Peter Baumann <Peter.B.Baumannn@stud.informatik.uni-erlangen.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Peter Baumann
2006-11-23 10:36:33 +01:00
committed by Junio C Hamano
parent 3fbe2d54d7
commit 0f03ca9461
3 changed files with 23 additions and 4 deletions

View File

@ -73,6 +73,7 @@ test_expect_success setup '
for i in 1 2; do echo $i; done >>dir/sub &&
git update-index file0 dir/sub &&
git repo-config log.showroot false &&
git commit --amend &&
git show-branch
'