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.maint
parent
1db0819a9c
commit
d2b6f7c2fd
|
@ -114,6 +114,8 @@ static void commit(void)
|
||||||
|
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case '$':
|
case '$':
|
||||||
|
case '\\':
|
||||||
|
case '`':
|
||||||
putchar('\\');
|
putchar('\\');
|
||||||
break;
|
break;
|
||||||
case 0 ... 31:
|
case 0 ... 31:
|
||||||
|
@ -133,6 +135,8 @@ static void commit(void)
|
||||||
|
|
||||||
printf("echo $commit > .git/refs/heads/'%s'\n", dst_branch);
|
printf("echo $commit > .git/refs/heads/'%s'\n", dst_branch);
|
||||||
|
|
||||||
|
printf("echo 'Committed (to %s):' ; cat .cmitmsg; echo\n", dst_branch);
|
||||||
|
|
||||||
*date = 0;
|
*date = 0;
|
||||||
*author = 0;
|
*author = 0;
|
||||||
*branch = 0;
|
*branch = 0;
|
||||||
|
|
Loading…
Reference in New Issue