Skip to content
  • Junio C Hamano's avatar
    Merge branch 'km/delete-ref-reflog-message' · c13c783c
    Junio C Hamano authored
    "git update-ref -d" and other operations to delete references did
    not leave any entry in HEAD's reflog when the reference being
    deleted was the current branch.  This is not a problem in practice
    because you do not want to delete the branch you are currently on,
    but caused renaming of the current branch to something else not to
    be logged in a useful way.
    
    * km/delete-ref-reflog-message:
      branch: record creation of renamed branch in HEAD's log
      rename_ref: replace empty message in HEAD's log
      update-ref: pass reflog message to delete_ref()
      delete_ref: accept a reflog message argument
    c13c783c