]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: refactor the code to obtain a short commit name
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 21 Oct 2016 12:24:37 +0000 (14:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2016 16:32:34 +0000 (09:32 -0700)
commit3975596482b15defec2b7aff19207df18493475e
tree62bad5ac5edb509d39ef636794b9185c7d1e945f
parentc0246501ed02c3bd1baa0953d5a46a874edc171e
sequencer: refactor the code to obtain a short commit name

Not only does this DRY up the code (providing a better documentation what
the code is about, as well as allowing to change the behavior in a single
place), it also makes it substantially shorter to use the same
functionality in functions to be introduced when we teach the sequencer to
process interactive-rebase's git-rebase-todo file.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c