Merge branch 'km/delete-ref-reflog-message'
commitc13c783c9d3d7d3eff937b7bf3642d2a7fe32644
authorJunio C Hamano <gitster@pobox.com>
Mon, 27 Feb 2017 21:57:18 +0000 (27 13:57 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Feb 2017 21:57:18 +0000 (27 13:57 -0800)
treec650be76225f1b73aa5df51bcba519c532ebf437
parent3f7ebc6ece46f1c23480d094688b8b5f24eb345c
parent39ee4c6c2fc80960094ae1454922c2d10c72f210
Merge branch 'km/delete-ref-reflog-message'

"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
builtin/branch.c
builtin/tag.c
refs.c
refs/files-backend.c
t/t1400-update-ref.sh
transport.c