git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug in "git log --graph -p -m" (version 1.7.7.6)
@ 2013-02-05 17:00 Dale R. Worley
  2013-02-05 17:40 ` Junio C Hamano
  0 siblings, 1 reply; 9+ messages in thread
From: Dale R. Worley @ 2013-02-05 17:00 UTC (permalink / raw)
  To: git

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

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

end of thread, other threads:[~2013-02-08 19:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-05 17:00 Bug in "git log --graph -p -m" (version 1.7.7.6) Dale R. Worley
2013-02-05 17:40 ` Junio C Hamano
2013-02-05 21:09   ` Matthieu Moy
2013-02-06 15:03     ` Dale R. Worley
2013-02-06 15:14       ` John Keeping
2013-02-06 18:33         ` Matthieu Moy
2013-02-06 19:57           ` [PATCH] graph: output padding for merge subsequent parents John Keeping
2013-02-08 17:52             ` Matthieu Moy
2013-02-08 19:40               ` Junio C Hamano

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).