summaryrefslogtreecommitdiff
path: root/reachable.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2007-01-19 11:51:29 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2007-02-03 12:54:49 -0800
commit5f856dd47dacb30fb9f605b4b7e1fa577ada7d26 (patch)
tree634604cc8d2cb12588ea85be851a8581d89c59a2 /reachable.c
parentcore-tutorial: http reference link fix (diff)
downloadtgif-5f856dd47dacb30fb9f605b4b7e1fa577ada7d26.tar.xz
fix reflog entries for "git-branch"
Even when -l is not given from the command line, the repository may have the configuration variable core.logallrefupdates set, or an old-timer might have done ": >.git/logs/refs/heads/new" before running "git branch new". In these cases, the code gave an uninitialized msg[] from the stack to be written out as the reflog message. This also passes a different message when '-f' option is used. Saying "git branch -f branch some-commit" is a moral equilvalent of doing "git-reset some-commit" while on the branch. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'reachable.c')
0 files changed, 0 insertions, 0 deletions