Re: [PATCH] Do not ignore hidden refs

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <junkio@...>
Cc: Petr Baudis <pasky@...>, <git@...>
Date: Saturday, November 18, 2006 - 3:41 am

Junio C Hamano <junkio@cox.net> wrote:

We use refs/heads/??/* as "developer specific" namespaces.

That is we use an update hook in our central repository to control
who can push into refs/heads/??/*.  If ?? matches the unix account
holder's initials then they can push into that name, otherwise
they can't.  This prevents any sort of naming collisions between
developers.

To make things slightly easier I've also suggested that people name
their local branches with the same ??/ prefix as they need to use
on the central repository, thereby making the branch name the same
everywhere.  This is actually one reason why git-completion.bash
suggests "??/foo:??/foo" when completing a branch name to git-push.
:)

So I don't think its a great idea to assume by default that
refs/heads/??/* is private to this repository.


Though on second thought maybe we should be using developer private
repositories with object alternates pointing at a central repository.
But that means users have to manipulate URLs to fetch another
developer's branch vs. just using an existing remote.<nick>.url,
which is the main reason we put everything into one repository.

-- 
Shawn.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Do not ignore hidden refs, Petr Baudis, (Sat Nov 18, 12:11 am)
Re: [PATCH] Do not ignore hidden refs, Linus Torvalds, (Sat Nov 18, 1:35 pm)
Re: [PATCH] Do not ignore hidden refs, Junio C Hamano, (Sat Nov 18, 2:35 pm)
Re: [PATCH] Do not ignore hidden refs, Junio C Hamano, (Sat Nov 18, 12:39 am)
Re: [PATCH] Do not ignore hidden refs, Petr Baudis, (Sat Nov 18, 12:53 am)
Re: [PATCH] Do not ignore hidden refs, Junio C Hamano, (Sat Nov 18, 3:27 am)
Re: [PATCH] Do not ignore hidden refs, Petr Baudis, (Sat Nov 18, 3:28 pm)
Re: [PATCH] Do not ignore hidden refs, Junio C Hamano, (Sat Nov 18, 3:50 pm)
Re: [PATCH] Do not ignore hidden refs, Junio C Hamano, (Sat Nov 18, 4:05 pm)
Re: [PATCH] Do not ignore hidden refs, Petr Baudis, (Sat Nov 18, 7:18 pm)
Re: [PATCH] Do not ignore hidden refs, Junio C Hamano, (Sat Nov 18, 8:29 pm)
Re: [PATCH] Do not ignore hidden refs, Petr Baudis, (Sat Nov 18, 8:48 pm)
Re: [PATCH] Do not ignore hidden refs, Petr Baudis, (Sat Nov 18, 3:55 pm)
Re: [PATCH] Do not ignore hidden refs, Shawn Pearce, (Sat Nov 18, 3:41 am)