Add "git push"
PATCH 1/1 Add "git push"
This patch adds the ability to "git push", as the obvious converse of "git pull".
git (mode:100644 sha1:c32ee037c4dd68f8fa6723cb115644d46810bc89) renamed from git (mode:100755 sha1:557122dfb05580e4af2c55767f3d6f92b9110edd) +2 -0
@@ -42,6 +42,7 @@ merge [-c] [-b BASE_ID] FROM_ID patch [COMMIT_ID] pull [RNAME] + push [RNAME] rm FILE... seek [COMMIT_ID] status
@@ -86,6 +87,7 @@ "lsremote") gitlsremote.sh "$@";; "merge") gitmerge.sh "$@";; "pull") gitpull.sh "$@";; +"push") gitpush.sh "$@";; "patch") gitpatch.sh "$@";; "rm") gitrm.sh "$@";; "seek") gitseek.sh "$@";;
gitpush.sh (mode:100644 sha1:0a658141991c602ca327edb9ab982d7660d7c665) renamed from dev/null (tree:42a073eb6b5bb397a3e8768a032463a7fa02e6b9) +59 -0
59 lines not on this page · raw message
Dear diary, on Thu, Apr 21, 2005 at 02:43:33PM CEST, I got a letter where Matthias Urlichs <[email protected]> told me that...
Quoted 2 lines
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.
Signature · 3 lines
Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor