login
Header Space

 
 

Re: git push bug?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Joakim Tjernlund <joakim.tjernlund@...>
Cc: 'Johannes Schindelin' <Johannes.Schindelin@...>, 'Steffen Prohaska' <prohaska@...>, 'git' <git@...>
Date: Saturday, October 20, 2007 - 8:05 am

On Fri, Oct 19, 2007 at 20:50:29 +0200, Joakim Tjernlund wrote:
elin@gmx.de] wrote:

Dscho it rarely kind to newbies.

subversion, I
 need
 find behavior

That's becasue tags come in two flavors -- annotated and unannotated.
Annotated ones don't point to commits directly, but via 'tag' objects, that
contain description and usually signature.

Now git push will simply assign a remote branch whatever value you give it.
You gave it a tag, so it assigned a tag.


Because in the former you are not saying whether refs/heads/linus,
refs/tags/linus or something else (the fact that heads and tags are treated
specially by git does not mean refs can't have other subdirectories -- it
can).

On the other hand in the later it resolves the ref locally and uses the same
name remotedly.


Your commands are quite obvious. No need for warning. (Besides, isn't there
a reflog?)


It does not create a branch. It creates a ref with slightly funny name (it's
refs/heads, not refs/head).
         ^


Because you could have wanted a tag. Or a remote. Or something completely
different, maybe because some add-on uses (eg. stgit uses refs/bases and
refs/patches, IIRC).


To me it all looks perfectly consistent. But maybe the documentation should
state more clearly, that push works in terms of arbitrary refs, NOT branche=
s.
Feel free to post a documentation patch (people who just had hard time
finding something out are usually better at explaining it than old-timers w=
ho
consider it obvious).

--=20
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git push bug?, Joakim Tjernlund, (Thu Oct 18, 10:50 am)
Re: git push bug?, Steffen Prohaska, (Thu Oct 18, 11:14 am)
Re: git push bug?, Shawn O. Pearce, (Thu Oct 18, 8:24 pm)
RE: git push bug?, Joakim Tjernlund, (Sat Oct 20, 1:38 pm)
Re: git push bug?, Joakim Tjernlund, (Thu Oct 18, 12:01 pm)
Re: git push bug?, Johannes Schindelin, (Thu Oct 18, 12:21 pm)
Re: git push bug?, Joakim Tjernlund, (Thu Oct 18, 12:31 pm)
Re: git push bug?, Johannes Schindelin, (Thu Oct 18, 6:00 pm)
Re: git push bug?, Joakim Tjernlund, (Fri Oct 19, 10:47 am)
Re: git push bug?, Johannes Schindelin, (Fri Oct 19, 1:24 pm)
RE: git push bug?, Joakim Tjernlund, (Fri Oct 19, 2:50 pm)
Re: git push bug?, Jan Hudec, (Sat Oct 20, 8:05 am)
RE: git push bug?, Johannes Schindelin, (Fri Oct 19, 6:46 pm)
Re: git push bug?, Steffen Prohaska, (Thu Oct 18, 12:55 pm)
Re: git push bug?, Johannes Schindelin, (Thu Oct 18, 5:58 pm)
Re: git push bug?, Steffen Prohaska, (Sat Oct 20, 4:29 am)
RE: git push bug?, Joakim Tjernlund, (Sat Oct 20, 7:52 am)
Re: git push bug?, Steffen Prohaska, (Sat Oct 20, 4:38 am)
Re: git push bug?, Joakim Tjernlund, (Thu Oct 18, 12:10 pm)
Re: git push bug?, Shawn O. Pearce, (Thu Oct 18, 8:49 pm)
Re: git push bug?, Steffen Prohaska, (Thu Oct 18, 12:13 pm)
speck-geostationary