Linus Torvalds <torvalds@osdl.org> writes: > I dunno. But maybe we do want the option of just keeping it as a slash, > and teach git-cvsimport to create the proper subdirectory prefixes. How about doing both? I think patch by Johannes to allow replacing slash to arbitrary string is a reasonable thing to have, but somebody who uses cvsimport needs to sign that off for me -- I do not regularly use git-ANYimport myself. > I have no idea how to do that in perl, though. Right now it just does > > open(C,">$git_dir/refs/tags/$xtag") > > how would you do "create file with all path components"? Something like this? use File::Path; my $file = "$git_dir/refs/tags/$xtag"; my ($dir) = $file =~ m/(.*)\//; mkpath($dir) && open C, ">$file"; - 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.htmlReceived on Sat Oct 29 06:30:44 2005
This archive was generated by hypermail 2.1.8 : 2005-10-29 06:30:50 EST