]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/git_recentchanges_should_not_show_merges.mdwn
web commit by http://id.loopysoft.com/matt/: Small formatting change
[ikiwiki.git] / doc / todo / git_recentchanges_should_not_show_merges.mdwn
1 The recentchanges page can currently display merge commits, such as "Merge
2 branch 'master' of ssh://git.kitenet.net/srv/git/ikiwiki.info".
3
4 It should filter these out somehow, but I'm not sure how to do that.
5
6 A merge in general is a commit with two parents, right? But such a merge
7 might be what gitweb calls a "simple merge", that is I think, just a 
8 fast-forward. Or it could be a merge that includes manual conflict resolution,
9 and should be shown in recentchanges.
10
11 Seems that the problem is that it's calling git-log with the -m option,
12 which makes merges be listed with the diff from the perspective of each
13 parent. I think it would be better to not use that (or possibly to use the
14 -c option instead?). The -m makes it show the merge from the POV of
15 each of the parents. If the -m is left off, none of the changes in the
16 merge are shown, even if it includes changes not in any of the parents
17 (manual conflict resolution). With -c, it seems to show only the unique
18 changes introduced by the merge.
19
20 [[done]], using -c, hope that was the right choice --[[Joey]]