diff options
author | David Turner <dturner@twopensource.com> | 2015-07-21 17:04:55 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-07-21 14:08:35 -0700 |
commit | 144c76fa39254903cb1e8e2d6d159603077356a7 (patch) | |
tree | 14c41558ef0aa09cb1088a2cf78b9116dbe73c0c /t/t5515/fetch.br-branches-default-merge_branches-default | |
parent | refs: add REF_FORCE_CREATE_REFLOG flag (diff) | |
download | tgif-144c76fa39254903cb1e8e2d6d159603077356a7.tar.xz |
update-ref and tag: add --create-reflog arg
Allow the creation of a ref (e.g. stash) with a reflog already in
place. For most refs (e.g. those under refs/heads), this happens
automatically, but for others, we need this option.
Currently, git does this by pre-creating the reflog, but alternate ref
backends might store reflogs somewhere other than .git/logs. Code
that now directly manipulates .git/logs should instead use git
plumbing commands.
I also added --create-reflog to git tag, just for completeness.
In a moment, we will use this argument to make git stash work with
alternate ref backends.
Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/fetch.br-branches-default-merge_branches-default')
0 files changed, 0 insertions, 0 deletions