git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git log omits deleting merges
@ 2014-02-20  7:35 Ephrim Khong
  2014-03-20 19:54 ` Jeff King
  0 siblings, 1 reply; 6+ messages in thread
From: Ephrim Khong @ 2014-02-20  7:35 UTC (permalink / raw)
  To: git

Hi, git log seems to omit merge commits that delete a file if --follow 
or --diff-filter=D is given. Below is a testcase. I'm not sure if it is 
desired behaviour for --diff-filter=D, but it's probably not correct 
that --follow _removes_ the merge commit from the log output.

Thanks - Eph

--
git init
touch some_file
git add some_file
git commit -m "initial"
git branch other_branch
echo foo > some_file
git commit -a -m "commit in master"
git checkout other_branch
echo bar > some_file
git commit -a -m "commit in other_branch"

git merge master --no-commit
rm some_file
git rm some_file
git commit -m "merge"

echo "log 1 - no output"
# note that --diff-filter=A and M work as expected
# the merge does not show up for --diff-filter=ACDMRTUXB either
git log --pretty=oneline --diff-filter=D -- some_file

echo "log 2 - merge is missing"
git log --pretty=oneline --follow --all -- some_file

echo "log 3 - complete"
git log --pretty=oneline --all -- some_file
--

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

end of thread, other threads:[~2014-03-24 14:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-20  7:35 git log omits deleting merges Ephrim Khong
2014-03-20 19:54 ` Jeff King
2014-03-20 22:56   ` Philip Oakley
2014-03-21  5:23     ` Jeff King
2014-03-24 10:25   ` Ephrim Khong
2014-03-24 14:19     ` Jeff King

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