]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
Add a function to update HEAD after creating a commit
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Fri, 17 Nov 2017 11:34:47 +0000 (11:34 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 18 Nov 2017 03:38:10 +0000 (12:38 +0900)
commit0505d604c9c5a361ee027d155c7d1facaf326863
treedd9f1ef8b862f5c98e868a0b2864c0aab445212b
parentd0aaa46fd3e53801346a4cadebf398f05d79780b
Add a function to update HEAD after creating a commit

Add update_head_with_reflog() based on the code that updates HEAD
after committing in builtin/commit.c that can be called by 'git
commit' and other commands.

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