push: keep track of "update" state separately

If the reference exists on the remote and it is not being removed, then
mark as an update.  This is in preparation for handling tags (lightweight
and annotated) exceptionally.

Signed-off-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Chris Rorvick
2012-11-29 19:41:35 -06:00
committed by Junio C Hamano
parent b24e6047a8
commit ffe81ef2ac
2 changed files with 12 additions and 7 deletions

View File

@ -1003,6 +1003,7 @@ struct ref {
merge:1,
nonfastforward:1,
not_forwardable:1,
update:1,
deletion:1;
enum {
REF_STATUS_NONE = 0,