From: Vegard Nossum Date: Tue, 22 Oct 2019 11:45:18 GMT Subject: [RFC PATCH v2 3/3] am: add --exact Message-ID: <20191022114518.32055-4-vegard.nossum@oracle.com> In-Reply-To: <20191022114518.32055-1-vegard.nossum@oracle.com> This uses exact metadata when creating the commit object, hopefully reconstructing the commit with the exact same SHA1. Note: In order to be forwards compatible with new commit formats we may want a new helper for creating a commit with the exact metadata that is present (and then validating the result) as opposed to trying to parse the metadata and pass it piecewise to commit_tree(). Previous-version: 3120370db888889f32e07a082edb4722db8feef1 Cc: Paul Tan Signed-off-by: Vegard Nossum --- Documentation/git-am.txt | 9 +++- builtin/am.c | 111 +++++++++++++++++++++++++++++++++++---- t/t4150-am.sh | 30 +++++++++++ 3 files changed, 138 insertions(+), 12 deletions(-) diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt index fc3b993c33..5b75596aaf 100644 --- a/Documentation/git-am.txt +++ b/Documentation/git-am.txt @@ -9,7 +9,7 @@ git-am - Apply a series of patches from a mailbox SYNOPSIS -------- [verse] -'git am' [--signoff] [--keep] [--[no-]keep-cr] [--[no-]utf8] +'git am' [--[no-]exact] [--signoff] [--keep] [--[no-]keep-cr] [--[no-]utf8] [--[no-]3way] [--interactive] [--committer-date-is-author-date] [--ignore-date] [--ignore-space-change | --ignore-whitespace] [--whitespace=