Bug in "git log --graph -p -m" (version 1.7.7.6)
- From
Dale R. Worley <worley@alum.mit.edu>
- Date
- Feb 5, 2013, 17:00 UTC
- Message-ID
- <201302051700.r15H0GXx031004@freeze.ariadne.com>
I have found a situation where "git log" produces (apparently) endless output. Presumably this is a bug. Following is a (Linux) script that reliably reproduces the error for me (on Fedora 16):
---------- set -ve
# Print the git version. git --version
# Create respository. rm -rf .git git init
# Initial commit. ( echo 1 ; echo 2 ; echo 3 ) >file git add file git commit -m 'Commit P' git branch B HEAD
# Next commit on master adds line "1a". ( echo 1 ; echo 1a ; echo 2 ; echo 3 ) >file git add file git commit -m 'Commit Q'
git checkout B
# Next commit on B adds line "2a". ( echo 1 ; echo 2 ; echo 2a ; echo 3 ) >file git add file git commit -m 'Commit R'
# Merge the two commits, but add line "3a" to the commit as well. git checkout master git merge --no-commit B # Show what the merge produces. cat file # Add line "3a". ( echo 1 ; echo 1a ; echo 2 ; echo 2a ; echo 3 ; echo 3a ) >file git commit -m 'Commit S'
# These log commands work. git log git log --graph git log --graph -p
# This log command produces infinite output. git log --graph -p -m ----------
Dale