]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: make commit options more extensible
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 23 Mar 2017 16:07:11 +0000 (17:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Mar 2017 20:54:19 +0000 (13:54 -0700)
commit789b3effec89e6f336726de109eb8be9dc60b7a5
tree43dbbaf998ebb7db776a55f2d19e017bc2cdc9bc
parentcb7fb9ed4277f3e1e9203777d4de0805cf29f873
sequencer: make commit options more extensible

So far every time we need to tweak the behaviour of run_git_commit()
we have been adding a "int" parameter to it.  As the function gains
parameters and different callsites having different needs, this is
becoming a maintenance burden.  When a new knob needs to be added to
address a specific need for a single callsite, all the other callsites
need to add a "no, I do not want anything special with respect to the
new knob" argument.

Consolidate the existing four parameters into a flag word to make it
more maintainable, as we will be adding a new one to the mix soon.

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