Re: git-svn tags and branches

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: git-svn tags and branches

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:31

"Giuseppe Bilotta" [off-list ref] writes:
On 8/29/07, Junio C Hamano [off-list ref] wrote:
quoted
"Giuseppe Bilotta" [off-list ref] writes:
quoted
BTW can git have a tag and a branch with the same name? If
not,...
This is "Yes but".

You can have a tag foo and branch foo.
[snip]
quoted
 You can clarify yourself to avoid ambiguity like so:

  . git branch newbranch heads/foo ;# I mean "branch from foo branch"
  . git log tags/foo ;# "show history starting at that tag"
Ok. So assuming we import a svn repo which has a tag and a branch
called 'name', and that there are post-tag commits in tags/name, how
do we call the stuff?

We could call 'name' both the (annotated) tag and the branch, but what
name would we use for the branch created by post-tag commits?
That's the "Yes but" part.  You need to know what you are doing.

As I said in the part you quoted, if you have branch foo and tag
foo, and if you are interested in talking about the tag 'foo',
you say "tag/foo".  When you want to talk about the branch, you
say "heads/foo".  Replace "foo" with "name" and I think you get
your answer.

Re: git-svn tags and branches

From: Giuseppe Bilotta <hidden>
Date: 2016-06-15 22:43:31

[did it again, sorry for the double-sent]

On 8/29/07, Junio C Hamano [off-list ref] wrote:
As I said in the part you quoted, if you have branch foo and tag
foo, and if you are interested in talking about the tag 'foo',
you say "tag/foo".  When you want to talk about the branch, you
say "heads/foo".  Replace "foo" with "name" and I think you get
your answer.
The problem here is that you can have THREE things: the tag foo, the
branch foo, and the 'branch' under the tag foo, which is not the
branch foo.

-- 
Giuseppe "Oblomov" Bilotta
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help