commit: encapsulate determine_whence() for sequencer
commit901ba7b1efe8ba9464aac528ecd46e8dd4f01003
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Fri, 6 Dec 2019 16:06:11 +0000 (6 16:06 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Dec 2019 17:32:02 +0000 (6 09:32 -0800)
tree546da93b1d4d3f4360d84064836cb62396a690ce
parent8d57f7574993deb906461d4267373e1c9c733053
commit: encapsulate determine_whence() for sequencer

Working out which command wants to create a commit requires detailed
knowledge of the sequencer internals and that knowledge is going to
increase in subsequent commits. With that in mind lets encapsulate that
knowledge in sequencer.c rather than spreading it into builtin/commit.c.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
sequencer.c
sequencer.h