chiark / gitweb /
Preserve the given author date during import
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 11 Sep 2009 23:04:07 +0000 (00:04 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Sun, 13 Sep 2009 15:40:49 +0000 (16:40 +0100)
The import has two stages - one for creating the initial empty commit
with the patch description followed by a refresh once the diff was
successfully applied. The second refresh resets the author date to the
current one. This patch passes the given author date to the
refresh_patch function.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
stgit/commands/imprt.py

index 0bbacbc5133c6e8f09147bb61c81949d070f4d51..aa750655467f25fc1c031505d3ae58fb97de1ecb 100644 (file)
@@ -158,6 +158,7 @@ def __create_patch(filename, message, author_name, author_email,
                         strip = options.strip)
         crt_series.refresh_patch(edit = options.edit,
                                  show_patch = options.showdiff,
+                                 author_date = author_date,
                                  sign_str = options.sign_str,
                                  backup = False)
         out.done()