]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: simplify root commit creation
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Mon, 19 Aug 2019 09:18:23 +0000 (02:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Aug 2019 22:27:19 +0000 (15:27 -0700)
commitb0a3186140dbc7bd64cbc6ef733386a0f1eb6a4d
treedca218a7c44a32e2984ad1a22b190233d9115b36
parenta47ba3c77713d04953e0630f8e7109084329078a
sequencer: simplify root commit creation

Adapt try_to_commit() to create a new root commit rather than special
casing this in run_git_commit(). This significantly reduces the amount of
special case code for creating the root commit and reduces the number of
commit code paths we have to worry about.

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