From: Junio C Hamano <gitster@pobox.com>
To: Max Horn <max@quendi.de>
Cc: git@vger.kernel.org, Felipe Contreras <felipe.contreras@gmail.com>
Subject: Re: What's cooking in git.git (Feb 2014, #06; Wed, 19)
Date: Mon, 24 Feb 2014 09:06:07 -0800 [thread overview]
Message-ID: <xmqqppmcbfuo.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <xmqqtxbobg98.fsf@gitster.dls.corp.google.com> (Junio C. Hamano's message of "Mon, 24 Feb 2014 08:57:23 -0800")
Junio C Hamano <gitster@pobox.com> writes:
> But I think I was worried too much into the future---I agree that
> the code can stay as you proposed until such a remote-helper needs
> more support, because "overwrite with zero" is necessary but is
> probably not sufficient---it also may need to be able to tell us
> what the final resulting commit of the push is, for example.
So, here is what I'll queue (with forged s-o-b).
Thanks.
-- >8 --
From: Max Horn <max@quendi.de>
Date: Fri, 21 Feb 2014 10:55:59 +0100
Subject: [PATCH] transport-helper.c: do not overwrite forced bit
If the the transport helper says it was a forced update, then it is
a forced update. It is however possible that an update is forced
without the transport-helper knowing about it, namely because some
higher up code had objections to the update and needed forcing in
order to let it through to the transport helper. In other words, it
does not necessarily mean the update was *not* forced, when the
helper did not say "forced update".
Signed-off-by: Max Horn <max@quendi.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
transport-helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/transport-helper.c b/transport-helper.c
index abe4c3c..705dce7 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -727,7 +727,7 @@ static int push_update_ref_status(struct strbuf *buf,
}
(*ref)->status = status;
- (*ref)->forced_update = forced;
+ (*ref)->forced_update |= forced;
(*ref)->remote_status = msg;
return !(status == REF_STATUS_OK);
}
--
1.9.0-291-g027825b
next prev parent reply other threads:[~2014-02-24 17:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-19 21:41 What's cooking in git.git (Feb 2014, #06; Wed, 19) Junio C Hamano
2014-02-20 18:39 ` Max Horn
2014-02-20 19:22 ` Junio C Hamano
2014-02-21 9:55 ` Max Horn
2014-02-21 15:46 ` Torsten Bögershausen
2014-02-21 18:04 ` Junio C Hamano
2014-02-22 0:55 ` Max Horn
2014-02-24 16:57 ` Junio C Hamano
2014-02-24 17:06 ` Junio C Hamano [this message]
2014-02-24 17:55 ` Max Horn
2014-02-21 16:18 ` Ramkumar Ramachandra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqppmcbfuo.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
--cc=max@quendi.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.