summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorMartin von Zweigbergk <martinvonz@gmail.com>2013-01-14 21:47:39 -0800
committerJunio C Hamano <gitster@pobox.com>2013-01-15 09:38:07 -0800
commit7bca0e451b8e502fa882b458d6fc825da80034cb (patch)
tree338e3ab66e097c6acb928049a685a49656b1d411 /commit.c
parentdca48cf520933c028f807f65175c29482a209f23 (diff)
downloadgit-7bca0e451b8e502fa882b458d6fc825da80034cb.tar.gz
reset.c: extract function for updating {ORIG_,}HEAD
By extracting the code for updating the HEAD and ORIG_HEAD symbolic references to a separate function, we declutter cmd_reset() a bit and we make it clear that e.g. the four variables {,sha1_}{,old_}orig are only used by this code. Signed-off-by: Martin von Zweigbergk <martinvonz@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions