Re: [PATCH 3/3] rename_ref: replace empty deletion message in HEAD's log
- From
Kyle Meyer <kyle@kyleam.com>
- Date
- Feb 17, 2017, 23:41 UTC
- Message-ID
- <871suwqtar.fsf@kyleam.com>
- In-Reply-To
- <xmqqk28ou2o1.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
[...]
Show 7 quoted lines
> Do we even want these "internal" delete_ref() invocations to be > logged in HEAD's reflog? I understand that this is inside the > implementation of renaming an old ref to a new ref, and reflog > message given to delete_ref() would matter only if the HEAD happens > to be pointing at old ref---but then HEAD will be repointed to the > new ref by somebody else [*1*] that called this function to rename > old to new and it _will_ log it.
I know the discussion has developed further, but just a note that I think the last statement is inaccurate: currently, a rename will not be recorded in HEAD's log. "git branch -m" will show a renaming event in the new branch's log, but the only trace of the event in HEAD's log is the deletion entry with an empty message.
-- Kyle