From: Linus Torvalds Date: Tue, 24 May 2005 19:57:12 +0000 (-0700) Subject: cvs2git: fix character quoting X-Git-Tag: v0.99.2~51^2~6 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d2b6f7c2fdd4012402b61b0a0a333b8b2011e8bc;p=git.git cvs2git: fix character quoting We need to quote backslash and backtick too. And inform the user about our progress, since converting a big archive can take time. Doing the full mutt history took just under eight minutes. --- diff --git a/cvs2git.c b/cvs2git.c index 8a76734a..1adc918f 100644 --- a/cvs2git.c +++ b/cvs2git.c @@ -114,6 +114,8 @@ static void commit(void) switch (c) { case '$': + case '\\': + case '`': putchar('\\'); break; case 0 ... 31: @@ -133,6 +135,8 @@ static void commit(void) printf("echo $commit > .git/refs/heads/'%s'\n", dst_branch); + printf("echo 'Committed (to %s):' ; cat .cmitmsg; echo\n", dst_branch); + *date = 0; *author = 0; *branch = 0;