]> git.ipfire.org Git - thirdparty/git.git/commit
onemerge: quick check and exit when the numbers match
authorJunio C Hamano <gitster@pobox.com>
Mon, 13 Jul 2026 18:07:10 +0000 (11:07 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Jul 2026 18:07:10 +0000 (11:07 -0700)
commite942edf96ea6229d3d02ae94da131679459bc0c6
tree42b5b087a8b5340affceed5bed3f05f2219b1788
parent8e01790140c3c13eefb25f66e6fbd6ddb187c54b
onemerge: quick check and exit when the numbers match

Before diving into inspecting each merge commit to see if it merges
more than two topics at the same time, we can count the number of
branches that are merged and the number of merge commits.  If they
match, we can skip the more expensive check.

This will break if we merge a topic in multiple steps, but we do not
do that these days, so it would be a reasonable optimization.
onemerge.sh