{
const char *cmit_parent = initial_commit ? "" : "-p HEAD";
const char *dst_branch;
+ char *space;
int i;
printf("tree=$(git-write-tree)\n");
printf("echo $commit > .git/refs/heads/'%s'\n", dst_branch);
+ space = strchr(tag, ' ');
+ if (space)
+ *space = 0;
+ if (strcmp(tag, "(none)"))
+ printf("echo $commit > .git/refs/tags/'%s'\n", tag);
+
printf("echo 'Committed (to %s):' ; cat .cmitmsg; echo\n", dst_branch);
*date = 0;