Re: [PATCH 1/3] delete_refs(): accept a reflog message argument

2017-02-17 Thread Kyle Meyer
Junio C Hamano writes: > Jeff King writes: > >>> diff --git a/refs.h b/refs.h >>> index 9fbff90e7..81627a63d 100644 >>> --- a/refs.h >>> +++ b/refs.h >>> @@ -277,7 +277,7 @@ int reflog_exists(const char *refname); >>> * be NULL_SHA1. flags is passed through

Re: [PATCH 1/3] delete_refs(): accept a reflog message argument

2017-02-17 Thread Junio C Hamano
Jeff King writes: >> diff --git a/refs.h b/refs.h >> index 9fbff90e7..81627a63d 100644 >> --- a/refs.h >> +++ b/refs.h >> @@ -277,7 +277,7 @@ int reflog_exists(const char *refname); >> * be NULL_SHA1. flags is passed through to ref_transaction_delete(). >> */ >> int

Re: [PATCH 1/3] delete_refs(): accept a reflog message argument

2017-02-17 Thread Jeff King
On Thu, Feb 16, 2017 at 10:57:58PM -0500, Kyle Meyer wrote: > When the current branch is renamed with 'git branch -m/-M' or deleted > with 'git update-ref -m -d', the event is recorded in HEAD's log > with an empty message. > > In preparation for adding a more meaningful message to HEAD's log in

[PATCH 1/3] delete_refs(): accept a reflog message argument

2017-02-16 Thread Kyle Meyer
When the current branch is renamed with 'git branch -m/-M' or deleted with 'git update-ref -m -d', the event is recorded in HEAD's log with an empty message. In preparation for adding a more meaningful message to HEAD's log in these cases, update delete_ref() to take a message argument and pass