git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* receive.denyCurrentBranch that allows pushing data, just not changing branch
@ 2019-05-25 21:48 Shawn Landden
  2019-05-25 23:39 ` Ævar Arnfjörð Bjarmason
  0 siblings, 1 reply; 2+ messages in thread
From: Shawn Landden @ 2019-05-25 21:48 UTC (permalink / raw)
  To: git

It would be nice if when pushing to a checked out repo you could get
up git to still push the commits, just not update the branch's HEAD.

-Shawn Landden

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: receive.denyCurrentBranch that allows pushing data, just not changing branch
  2019-05-25 21:48 receive.denyCurrentBranch that allows pushing data, just not changing branch Shawn Landden
@ 2019-05-25 23:39 ` Ævar Arnfjörð Bjarmason
  0 siblings, 0 replies; 2+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2019-05-25 23:39 UTC (permalink / raw)
  To: Shawn Landden; +Cc: git


On Sat, May 25 2019, Shawn Landden wrote:

> It would be nice if when pushing to a checked out repo you could get
> up git to still push the commits, just not update the branch's HEAD.

How would this proposed feature differ from what
receive.denyCurrentBranch=false does now?

You have a commit X in a non-bare repo. Your checkout is checked-out to
X, your index has X's content in it, and the branch reference is at X.

Now you push Y to the branch reference, what would you like to have
happen to the checkout & index at this point?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-05-25 23:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-25 21:48 receive.denyCurrentBranch that allows pushing data, just not changing branch Shawn Landden
2019-05-25 23:39 ` Ævar Arnfjörð Bjarmason

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).