From: Carl Worth <cworth@cworth.org>
To: Junio C Hamano <gitster@pobox.com>
Cc: Barry Fishman <barry_fishman@acm.org>, git@vger.kernel.org
Subject: Re: Problems setting up bare repository (git 1.5.3.3)
Date: Mon, 01 Oct 2007 16:06:09 -0700 [thread overview]
Message-ID: <87bqbisae6.wl%cworth@cworth.org> (raw)
In-Reply-To: <7vejgeqxd1.fsf@gitster.siamese.dyndns.org>
[-- Attachment #1: Type: text/plain, Size: 1748 bytes --]
On Mon, 01 Oct 2007 15:32:58 -0700, Junio C Hamano wrote:
> "master:master") does not exist there, and we do not create it
> unless you give a full refname that begins with refs/ (so that
> push can tell if you want to create a tag or a branch).
And why is that?
Why isn't pushing a branch interpreted as wanting to create a branch
and pushing a tag interpreted as wanting to create a tag unless git is
told differently?
> $ git push /pub/git/foo.git master:refs/heads/master
I mean, it's nice that the advanced user can get all specific and
invoke the low-level refs/heads/ thing here. But what I'd really like
to have instead is just:
$ git push /pub/git/foo.git master
Is there any reason that that shouldn't be interpreted as
"master:master" and that that would in turn be interpreted as "create
a remote refs/heads/master" ?
That would really be much kinder for new users.
-Carl
PS. As someone who has written some new-user documentation for git,
there are a few low-level git notions that I would like to avoid in
that documentation. For example, one is FETCH_HEAD. In my first
attempt at porting hgbook-chapter2 to git I found myself using
FETCH_HEAD to simulate "hg incoming". Thankfully, I was able to
rewrite it by taking advantage of remotes and using "master..origin"
instead.
Another example is "refs/heads". I avoided this partially by inly
documenting how to push all branches with "--all", but I'd much rather
be able to say that the user could git push URL branch
another-branch..." or "git push URL --all" for convenience. Finally,
git-push itself spews quite a bit of output with "refs/heads" in it
that I don't think is useful at all. For talking with the user, git
should say "branch master" not "refs/heads/master".
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-10-01 23:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-01 21:46 Problems setting up bare repository (git 1.5.3.3) Barry Fishman
2007-10-01 22:32 ` Junio C Hamano
2007-10-01 23:06 ` Carl Worth [this message]
2007-10-01 23:17 ` J. Bruce Fields
2007-10-01 23:24 ` Junio C Hamano
2007-10-01 23:47 ` Carl Worth
2007-10-01 23:35 ` Shawn O. Pearce
2007-10-02 9:46 ` Johannes Schindelin
2007-10-02 13:54 ` Barry Fishman
2007-10-02 17:40 ` Johannes Schindelin
2007-10-02 19:54 ` Barry Fishman
2007-10-02 15:39 ` Carl Worth
2007-10-02 17:45 ` Johannes Schindelin
2007-10-02 18:23 ` Junio C Hamano
2007-10-02 18:55 ` Sean
2007-10-02 19:09 ` Junio C Hamano
2007-10-02 21:02 ` Johannes Schindelin
2007-10-02 20:59 ` Johannes Schindelin
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=87bqbisae6.wl%cworth@cworth.org \
--to=cworth@cworth.org \
--cc=barry_fishman@acm.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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).