git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/5] git-svn: Allow setting the committer and author date separately

From
Alex Vandiver <alex@chmrr.net>
Date
Dec 2, 2009, 19:07 UTC
Message-ID
<1259780874-14706-2-git-send-email-alex@chmrr.net>
In-Reply-To
<1259780874-14706-1-git-send-email-alex@chmrr.net>
Signed-off-by: Alex Vandiver <alex@chmrr.net>
---
 git-svn.perl |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index 51f03ad..53bf20c 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -2491,7 +2491,7 @@ sub set_commit_header_env {
 
 	$ENV{GIT_AUTHOR_NAME} = $log_entry->{name};
 	$ENV{GIT_AUTHOR_EMAIL} = $log_entry->{email};
-	$ENV{GIT_AUTHOR_DATE} = $ENV{GIT_COMMITTER_DATE} = $log_entry->{date};
+	$ENV{GIT_AUTHOR_DATE} = $log_entry->{date};
 
 	$ENV{GIT_COMMITTER_NAME} = (defined $log_entry->{commit_name})
 						? $log_entry->{commit_name}
@@ -2499,6 +2499,9 @@ sub set_commit_header_env {
 	$ENV{GIT_COMMITTER_EMAIL} = (defined $log_entry->{commit_email})
 						? $log_entry->{commit_email}
 						: $log_entry->{email};
+        $ENV{GIT_COMMITTER_DATE} =  (defined $log_entry->{commit_date})
+						? $log_entry->{commit_date}
+						: $log_entry->{date};
 	\%env;
 }
 
-- 
1.6.6.rc0.327.g032bc
Previous: Alex VandiverNext: Alex Vandiver
Message 2 of 12 in “git-svn: svk log message cleanup”
  1. 0/5 git-svn: svk log message cleanupAlex Vandiver, Dec 2, 2009
  2. 1/5 git-svn: Allow setting the committer and author date separatelyAlex Vandiver, Dec 2, 2009
  3. 2/5 git-svn: Make merge metadata accessible to make_log_entryAlex Vandiver, Dec 2, 2009
  4. Alex VandiverDec 2, 2009
  5. Eric WongDec 5, 2009
  6. Alex VandiverDec 5, 2009
  7. Sam VilainDec 5, 2009
  8. Alex VandiverDec 5, 2009
  9. Alex VandiverDec 19, 2009
  10. 3/5 git-svn: Strip SVK headers, optionally parsing author informationAlex Vandiver, Dec 2, 2009
  11. 4/5 git-svn: Provide a default "empty commit message" so the metadata is not the headerAlex Vandiver, Dec 2, 2009
  12. 5/5 git-svn: Correct a copy-and-pasted misleading commentAlex Vandiver, Dec 2, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.