git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git push <branch-name>
@ 2010-10-05 20:29 Eric Raible
  2010-10-05 22:35 ` Sverre Rabbelier
  0 siblings, 1 reply; 9+ messages in thread
From: Eric Raible @ 2010-10-05 20:29 UTC (permalink / raw)
  To: Git Mailing List

A newbie colleague asked why: "git push <branch>" didn't work.

Although I know that "git push <repo> <branch>" is the correct
syntax, I think that he has a point.  If branch.<branch>.remote
is defined it seems unambiguous to me.

So I can't see any reason NOT to dwimify

    git push <branch>

into

    git push $(git config branch.<branch>.remote) <branch>

What am I missing?

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: git push <branch-name>
@ 2010-10-05 22:11 Daniel Johnson
  2010-10-05 22:28 ` Eric Raible
  0 siblings, 1 reply; 9+ messages in thread
From: Daniel Johnson @ 2010-10-05 22:11 UTC (permalink / raw)
  To: Eric Raible; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 550 bytes --]

On Tuesday 05 October 2010 16:29:50 you wrote:
> A newbie colleague asked why: "git push <branch>" didn't work.
> 
> Although I know that "git push <repo> <branch>" is the correct
> syntax, I think that he has a point.  If branch.<branch>.remote
> is defined it seems unambiguous to me.
> 
> So I can't see any reason NOT to dwimify
> 
>     git push <branch>
Isn't that syntax reserved for remotes?
for example:

git push origin

I feel like it would be a bad idea to have these 2 types of invocations 
overlap in syntax like that.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2010-10-08  6:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-05 20:29 git push <branch-name> Eric Raible
2010-10-05 22:35 ` Sverre Rabbelier
2010-10-06  0:52   ` Eric Raible
2010-10-07 10:50     ` Michael J Gruber
2010-10-07 17:41       ` Eric Raible
2010-10-08  6:17         ` Michael J Gruber
  -- strict thread matches above, loose matches on Subject: below --
2010-10-05 22:11 Daniel Johnson
2010-10-05 22:28 ` Eric Raible
2010-10-06 13:41   ` Sebastian Harl

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).