git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Change git-cvsimport to handle slashes in CVS tags

From
Junio C Hamano <junkio@cox.net>
Date
Oct 28, 2005, 20:29 UTC
Message-ID
<7vmzkt4c7s.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0510281151450.4664@g5.osdl.org>
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.

Show 5 quoted lines
> 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";

Previous: Linus TorvaldsNext: H. Peter Anvin
Message 4 of 5 in “Change git-cvsimport to handle slashes in CVS tags”
  1. Change git-cvsimport to handle slashes in CVS tagsWayne Scott, Oct 28, 2005
  2. Johannes SchindelinOct 28, 2005
  3. Linus TorvaldsOct 28, 2005
  4. Junio C HamanoOct 28, 2005
  5. H. Peter AnvinOct 28, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.