Code

cvs2git: add support for GIT_COMMITTER_DATE
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 May 2005 16:59:55 +0000 (09:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 May 2005 16:59:55 +0000 (09:59 -0700)
Of course, this requires a version of git that cares..

cvs2git.c

index 462a8736c8c8ee387896fba031d4ef4e5d5c4f13..b63b8bc53d0512cb842f5c1fc70be9f460442214 100644 (file)
--- a/cvs2git.c
+++ b/cvs2git.c
@@ -69,10 +69,10 @@ static void prepare_commit(void)
 
        printf("export GIT_COMMITTER_NAME=%s\n", author_name);
        printf("export GIT_COMMITTER_EMAIL=%s\n", author_email);
+       printf("export GIT_COMMITTER_DATE='%s'\n", date);
 
        printf("export GIT_AUTHOR_NAME=%s\n", author_name);
        printf("export GIT_AUTHOR_EMAIL=%s\n", author_email);
-
        printf("export GIT_AUTHOR_DATE='%s'\n", date);
 
        if (initial_commit)