From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miklos Vajna Subject: [PATCH] builtin-commit: add --date option Date: Tue, 1 Dec 2009 01:27:32 +0100 Message-ID: <1259627252-21615-1-git-send-email-vmiklos@frugalware.org> To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Tue Dec 01 01:31:45 2009 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1NFGee-0007lR-AC for gcvg-git-2@lo.gmane.org; Tue, 01 Dec 2009 01:31:44 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752913AbZLAAbc (ORCPT ); Mon, 30 Nov 2009 19:31:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752827AbZLAAbc (ORCPT ); Mon, 30 Nov 2009 19:31:32 -0500 Received: from yugo.dsd.sztaki.hu ([195.111.2.114]:33473 "EHLO yugo.frugalware.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752466AbZLAAbb (ORCPT ); Mon, 30 Nov 2009 19:31:31 -0500 X-Greylist: delayed 350 seconds by postgrey-1.27 at vger.kernel.org; Mon, 30 Nov 2009 19:31:31 EST Received: from vmobile.example.net (catv-89-134-195-11.catv.broadband.hu [89.134.195.11]) by yugo.frugalware.org (Postfix) with ESMTPA id 338FC1A49F for ; Tue, 1 Dec 2009 01:25:47 +0100 (CET) Received: by vmobile.example.net (Postfix, from userid 1003) id 68D72181FDB; Tue, 1 Dec 2009 01:27:33 +0100 (CET) X-Mailer: git-send-email 1.6.5.2 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: 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 `