Re: [PATCH] Also handle CVS branches with a '/' in their name
- From
Junio C Hamano <junkio@cox.net>
- Date
- Aug 17, 2005, 07:02 UTC
- Message-ID
- <7vk6il11wi.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.63.0508170839030.27628@wgmdd8.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> I track a CVS project which has a branch with a '/' in the branch name. > Since git wants the branch name to be a file name at the same time, > translate that character to a '-'. This should work well, despite the > fact that a division and a difference are completely different :-)
My feeling is that there should be nothing to prevent you from having a non-flat namespace in .git/refs/heads; i.e. we should allow ".git/refs/heads/foo/bar". Some of the existing tools may be forgetting to call either "mkdir -p $(dirname $ref)" if they are written in shell, or safe_create_leading_directories(ref) in C, but I consider that is a bug.