git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add "git push"

From
Petr Baudis <pasky@ucw.cz>
Date
Apr 21, 2005, 20:41 UTC
Message-ID
<20050421204125.GI7443@pasky.ji.cz>
In-Reply-To
<20050421124333.AB2CE7F887@smurf.noris.de>

Dear diary, on Thu, Apr 21, 2005 at 02:43:33PM CEST, I got a letter where Matthias Urlichs <smurf@smurf.noris.de> told me that...

> This patch adds the ability to "git push", as the obvious converse of
> "git pull".

While lack of locking is a problem for git-pasky too, for this git push it is a downright disaster waiting to happen. It might be also a good idea to check for remote 'blocked' file, which must exist and contain only a "pushtree" line. This is so that no (sensible) real working tree is attached to it, which would be a disaster for it too.

You probably don't want to allow pushing if your local tree is blocked. And you want to allow pushing only when HEAD is your ancestor. (Helper tool wanted for this - we need this in git merge badly too.)

BTW, it contains some unrelated and seemingly irrelevant tracking stuff.
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Matthias Urlichs
Message 2 of 2 in “Add "git push"”
  1. Add "git push"Matthias Urlichs, Apr 21, 2005
  2. Petr BaudisApr 21, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.