diff options
author | Junio C Hamano <junkio@cox.net> | 2007-01-19 11:51:29 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-03 12:54:49 -0800 |
commit | 5f856dd47dacb30fb9f605b4b7e1fa577ada7d26 (patch) | |
tree | 634604cc8d2cb12588ea85be851a8581d89c59a2 /git-commit.sh | |
parent | core-tutorial: http reference link fix (diff) | |
download | tgif-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 'git-commit.sh')
0 files changed, 0 insertions, 0 deletions