From: Jeff King <peff@peff.net>
To: Jay Soffian <jaysoffian@gmail.com>
Cc: Jason Garber <jgarber@ionzoft.com>, git@vger.kernel.org
Subject: Re: git push [rejected] question
Date: Tue, 19 Feb 2008 10:08:27 -0500 [thread overview]
Message-ID: <20080219150826.GA24499@sigill.intra.peff.net> (raw)
In-Reply-To: <76718490802190509k20225092o66853916f48e08b1@mail.gmail.com>
On Tue, Feb 19, 2008 at 08:09:36AM -0500, Jay Soffian wrote:
> git-push(1) is a bit confusing I think:
>
> "Note: If no explicit refspec is found, (that is neither on the command line
> nor in any Push line of the corresponding remotes file---see below), then all
> the heads that exist both on the local side and on the remote side are
> updated."
>
> is clear enough, but then:
>
> "--all Instead of naming each ref to push, specifies that all refs under
> $GIT_DIR/refs/heads/ be pushed."
>
> So what is '--all' needed for then?
In the first case we push "matching" refs: any head which already exists
on both sides. In the second case, we push all heads which exist on the
sending send, whether or not a matching ref already exists on the remote
side.
I think the first statement could be made to emphasize the matching
aspect a little more, since a quick read makes it seem like it's pushing
the union of the two sets, not the intersection of the two sets.
> It seems like the default should be to push just the current branch
> ... this would correspond to what a user of git pull expects (even
> though the converse of git-push is really git-fetch, for a new user,
> that might not be entirely clear).
I agree with you, but others do not; this has come up several times in
the past (there was some discussion a week or two ago in the thread
"Minor annoyance with git push").
-Peff
next prev parent reply other threads:[~2008-02-19 15:09 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-18 22:15 git push [rejected] question Jason Garber
2008-02-19 4:33 ` Jeff King
2008-02-19 13:09 ` Jay Soffian
2008-02-19 15:08 ` Jeff King [this message]
2008-02-19 15:18 ` Jay Soffian
2008-02-19 15:25 ` Jeff King
2008-02-19 15:59 ` Johannes Schindelin
2008-02-19 16:14 ` [PATCH(TIC)] push: annoy all users by deprecating the default semantics Johannes Schindelin
2008-02-19 16:21 ` Jason Garber
2008-02-19 16:41 ` Johannes Schindelin
2008-02-19 16:37 ` Jeff King
2008-02-19 16:54 ` Johannes Schindelin
2008-02-19 17:05 ` Jeff King
2008-02-20 1:03 ` Govind Salinas
2008-02-20 1:10 ` Junio C Hamano
2008-02-20 1:21 ` Govind Salinas
2008-02-20 3:15 ` Junio C Hamano
2008-02-19 18:40 ` Jay Soffian
[not found] ` <E7DE807861E8474E8AC3DC7AC2C75EE50542F62D@34093-EVS2C1.exchange.rackspace.com>
2008-02-19 15:21 ` git push [rejected] question Jeff King
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=20080219150826.GA24499@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=jaysoffian@gmail.com \
--cc=jgarber@ionzoft.com \
/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 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 NNTP newsgroup(s).