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

[PATCH] Also handle CVS branches with a '/' in their name

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Aug 17, 2005, 06:39 UTC
Message-ID
<Pine.LNX.4.63.0508170839030.27628@wgmdd8.biozentrum.uni-wuerzburg.de>

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 :-)

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 git-cvsimport-script |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
787879e1e16d6cece75dc4744358ba0073e908cc
diff --git a/git-cvsimport-script b/git-cvsimport-script
--- a/git-cvsimport-script
+++ b/git-cvsimport-script
@@ -621,6 +621,7 @@ while(<CVS>) {
 		$state = 4;
 	} elsif($state == 4 and s/^Branch:\s+//) {
 		s/\s+$//;
+		s/\//-/g;
 		$branch = $_;
 		$state = 5;
 	} elsif($state == 5 and s/^Ancestor branch:\s+//) {
Next: Junio C Hamano
Message 1 of 5 in “Also handle CVS branches with a '/' in their name”
  1. Also handle CVS branches with a '/' in their nameJohannes Schindelin, Aug 17, 2005
  2. Junio C HamanoAug 17, 2005
  3. Johannes SchindelinAug 17, 2005
  4. Junio C HamanoAug 17, 2005
  5. Also handle CVS branches with a '/' in their nameJohannes Schindelin, Aug 17, 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.