chiark / gitweb /
git-debrebase: keycommits: Callbacks get separate $mainwhy
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 6 Jul 2018 23:13:02 +0000 (00:13 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 6 Jul 2018 23:13:02 +0000 (00:13 +0100)
commit27aec8c7cfd2cfd315e321d9ac335872665bcfc0
tree64939dcf9b834650a7e2e36a123bfb19b234d82c
parentf854422931713c267a1a38415de478f0c2723b49
git-debrebase: keycommits: Callbacks get separate $mainwhy

Separate out the extra contextual info, naming the hash of the commit
being complained about, into a separate argument to $x->().  This
allows us to pass the message without that as an additional argument
to the callbacks.

This way we can still pass \&snag as a callback but other callers can
do something more sophisticated involving $cl.

No functional change for any existing callers.

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