Skip to content
  • David Turner's avatar
    update-ref and tag: add --create-reflog arg · 144c76fa
    David Turner authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarDavid Turner <dturner@twopensource.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    144c76fa