From: Miklos Vajna Date: Tue, 01 Dec 2009 00:27:32 GMT Subject: [PATCH] builtin-commit: add --date option Message-ID: <1259627252-21615-1-git-send-email-vmiklos@frugalware.org> This is useful in case git commit --amend is used but the user wants to set the date of the new commit to a specified one, since GIT_AUTHOR_DATE is ignored in such a situation. Signed-off-by: Miklos Vajna --- Documentation/git-commit.txt | 6 +++++- builtin-commit.c | 6 +++++- t/t7501-commit.sh | 15 +++++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt index 3ea80c8..3b9a7c3 100644 --- a/Documentation/git-commit.txt +++ b/Documentation/git-commit.txt @@ -11,7 +11,7 @@ SYNOPSIS 'git commit' [-a | --interactive] [-s] [-v] [-u] [--amend] [--dry-run] [(-c | -C) ] [-F | -m ] [--allow-empty] [--no-verify] [-e] [--author=] - [--cleanup=] [--] [[-i | -o ]...] + [--date=] [--cleanup=] [--] [[-i | -o ]...] DESCRIPTION ----------- @@ -80,6 +80,10 @@ OPTIONS an existing commit that matches the given string and its author name is used. +--date=:: + Override the date used in the commit. The format is the Git + native one and is `