{"thread":{"id":"793","subject":"[PATCH] Make cvs2git create tags","startedAt":"2005-06-01T11:27:23Z","lastAt":"2005-06-08T00:43:16Z","messageCount":2,"participants":["Sven Verdoolaege","Petr Baudis"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"4361","messageId":"20050601112723.GA18682@pc117b.liacs.nl","threadId":"793","inReplyTo":null,"subject":"[PATCH] Make cvs2git create tags","fromName":"Sven Verdoolaege","fromEmail":"skimo@liacs.nl","sentAt":"2005-06-01T11:27:23Z","receivedAt":"2005-06-01T11:27:23Z","isPatch":true,"sender":{"key":"skimo@kotnet.org","avatar":null},"body":"The current version of cvs2git doesn't propagate tags.\nTrivial patch below.\n\nskimo\n-- \ncvs2git: create tags\n\ncvsps seems to put a space after the tag name, so we remove it first.\n\n---\ncommit 713a66bd98e65237cff37e0dfa68573973a60468\ntree 07c5104ebeb6f189dc11eee3263966735307cfac\nparent 324a7234776aafdc594942f1e5ef8e0f6358c0a5\nauthor Sven Verdoolaege <skimo@liacs.nl> Wed, 01 Jun 2005 13:15:06 +0200\ncommitter Sven Verdoolaege <skimo@liacs.nl> Wed, 01 Jun 2005 13:15:06 +0200\n\n cvs2git.c |    7 +++++++\n 1 files changed, 7 insertions(+), 0 deletions(-)\n\ndiff --git a/cvs2git.c b/cvs2git.c\n--- a/cvs2git.c\n+++ b/cvs2git.c\n@@ -115,6 +115,7 @@ static void commit(void)\n {\n \tconst char *cmit_parent = initial_commit ? \"\" : \"-p HEAD\";\n \tconst char *dst_branch;\n+\tchar *space;\n \tint i;\n \n \tprintf(\"tree=$(git-write-tree)\\n\");\n@@ -147,6 +148,12 @@ static void commit(void)\n \n \tprintf(\"echo $commit > .git/refs/heads/'%s'\\n\", dst_branch);\n \n+\tspace = strchr(tag, ' ');\n+\tif (space)\n+\t\t*space = 0;\n+\tif (strcmp(tag, \"(none)\"))\n+\t\tprintf(\"echo $commit > .git/refs/tags/'%s'\\n\", tag);\n+\n \tprintf(\"echo 'Committed (to %s):' ; cat .cmitmsg; echo\\n\", dst_branch);\n \n \t*date = 0;\n"},{"id":"4682","messageId":"20050608004316.GA7916@pasky.ji.cz","threadId":"793","inReplyTo":"20050601112723.GA18682@pc117b.liacs.nl","subject":"Re: [PATCH] Make cvs2git create tags","fromName":"Petr Baudis","fromEmail":"pasky@ucw.cz","sentAt":"2005-06-08T00:43:16Z","receivedAt":"2005-06-08T00:43:16Z","isPatch":true,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Wed, Jun 01, 2005 at 01:27:23PM CEST, I got a letter\nwhere Sven Verdoolaege <skimo@liacs.nl> told me that...\n> The current version of cvs2git doesn't propagate tags.\n> Trivial patch below.\n> \n> skimo\n> -- \n> cvs2git: create tags\n> \n> cvsps seems to put a space after the tag name, so we remove it first.\n\n  Hi,\n\n  this seems to have been forgotten along the way, and still appears to\nbe applicable to the latest git.\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nC++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor\n"}]}