chiark / gitweb /
git-debrebase: Fix snagging
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 9 Jun 2018 12:08:51 +0000 (13:08 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jun 2018 21:40:14 +0000 (22:40 +0100)
commit8fa9dd51a4602b965d16b970611e04538e08967d
tree6e61635ffe6310ef8bd37a40c2e1e6d448306078
parent25fa26693587f923061cc4d144297dee29eb4892
git-debrebase: Fix snagging

* Rename $snags_checked to $snags_summarised and make it a counter
  of the snags we have summarised in snags_maybe_bail.
* Introduce all_snags_summarised, which uses arithmetic to see if
  we have had new snags since the most recent snags_maybe_bail,
* Use this in run_deferred_updates rather than the existing
  approach; this means we can crash if there were new snags for
  which we should have bailed.
* Make snags_maybe_bail not produce a redundant identical summary.
* Initialise counters to 0 so arithmetic does not give undef warnings.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
git-debrebase