git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Distinguishing trivial and non-trivial merge commits
@ 2010-04-30 16:35 Eli Barzilay
  2010-05-02 18:18 ` Jonathan Nieder
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Barzilay @ 2010-04-30 16:35 UTC (permalink / raw)
  To: git

I'm trying to get a goot notification script, and got stuck with merge
commits.  My script shows a list of modifications for each commit
(based on the diffstat output) -- and if I show all commits, then
merges are misleading in that a quick glance through the email makes
it look like a lot more was touched.  Using `--no-merges' helps in
avoiding the confusing parts, but that's dangerous in omitting
non-trivial merges too -- and those are probably even more worth
noting than other changes (just because they'll highlights changes
that are "hotter" in the sense of more people working on that code).

The only way I've seen to distinguish the two is to use `git show' and
see if there is no diff output (eg, "git show --pretty=format: $rev").
But that doesn't help in getting the list of modified files.  So I add
`--stat' to that, and that goes back to showing all files again, the
same stuff that "git diff $rev^!" shows.

Is there *any* way to get `git diff --stat' to do the same thing that
`git show' does?  (Or a way to get `git show --stat' not show all
files again...)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

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

end of thread, other threads:[~2010-05-02 23:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-30 16:35 Distinguishing trivial and non-trivial merge commits Eli Barzilay
2010-05-02 18:18 ` Jonathan Nieder
2010-05-02 19:32   ` Eli Barzilay
2010-05-02 20:12     ` Jakub Narebski
2010-05-02 21:03       ` Eli Barzilay
2010-05-02 23:07         ` Junio C Hamano
2010-05-02 23:23           ` Eli Barzilay
2010-05-02 20:29     ` Jonathan Nieder

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