diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-24 12:57:12 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-24 12:57:12 -0700 |
commit | d2b6f7c2fdd4012402b61b0a0a333b8b2011e8bc (patch) | |
tree | a0e0d3940c350f14545a481b179217f626c93440 | |
parent | 1db0819a9cb30234678df73a99b82cb96babeca5 (diff) | |
download | git-d2b6f7c2fdd4012402b61b0a0a333b8b2011e8bc.tar.gz git-d2b6f7c2fdd4012402b61b0a0a333b8b2011e8bc.tar.xz |
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.
-rw-r--r-- | cvs2git.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |