From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Shawn O. Pearce" Subject: [PATCH 1/11] Use GIT_REFLOG_ACTION environment variable instead. Date: Thu, 28 Dec 2006 02:34:48 -0500 Message-ID: <20061228073448.GA17867@spearce.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org X-From: git-owner@vger.kernel.org Thu Dec 28 08:35:00 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gzpn1-0000sg-JO for gcvg-git@gmane.org; Thu, 28 Dec 2006 08:34:59 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964949AbWL1Hew (ORCPT ); Thu, 28 Dec 2006 02:34:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964955AbWL1Hew (ORCPT ); Thu, 28 Dec 2006 02:34:52 -0500 Received: from corvette.plexpod.net ([64.38.20.226]:45792 "EHLO corvette.plexpod.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964949AbWL1Hev (ORCPT ); Thu, 28 Dec 2006 02:34:51 -0500 Received: from cpe-74-70-48-173.nycap.res.rr.com ([74.70.48.173] helo=asimov.home.spearce.org) by corvette.plexpod.net with esmtpa (Exim 4.52) id 1GzpmQ-0007vd-Sb; Thu, 28 Dec 2006 02:34:23 -0500 Received: by asimov.home.spearce.org (Postfix, from userid 1000) id 3C59720FB65; Thu, 28 Dec 2006 02:34:48 -0500 (EST) To: Junio C Hamano Content-Disposition: inline User-Agent: Mutt/1.5.11 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - corvette.plexpod.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - spearce.org X-Source: X-Source-Args: X-Source-Dir: Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Junio rightly pointed out that the --reflog-action parameter was starting to get out of control, as most porcelain code needed to hand it to other porcelain and plumbing alike to ensure the reflog contained the top-level user action and not the lower-level actions it invoked. At Junio's suggestion we are introducing the new set_reflog_action function to all shell scripts, allowing them to declare early on what their default reflog name should be, but this setting only takes effect if the caller has not already set the GIT_REFLOG_ACTION environment variable. Signed-off-by: Shawn O. Pearce --- Documentation/git-merge.txt | 6 ------ git-am.sh | 7 ++----- git-fetch.sh | 21 ++++++++------------- git-merge.sh | 13 +++++-------- git-pull.sh | 6 +++--- git-rebase.sh | 10 ++++------ git-sh-setup.sh | 8 ++++++++ 7 files changed, 30 insertions(+), 41 deletions(-) diff --git a/Documentation/git-merge.txt b/Documentation/git-merge.txt index e2954aa..0f79665 100644 --- a/Documentation/git-merge.txt +++ b/Documentation/git-merge.txt @@ -10,7 +10,6 @@ SYNOPSIS -------- [verse] 'git-merge' [-n] [--no-commit] [--squash] [-s ]... - [--reflog-action=] -m= ... DESCRIPTION @@ -37,11 +36,6 @@ include::merge-options.txt[] least one . Specifying more than one obviously means you are trying an Octopus. ---reflog-action=:: - This is used internally when `git-pull` calls this command - to record that the merge was created by `pull` command - in the `ref-log` entry that results from the merge. - include::merge-strategies.txt[] diff --git a/git-am.sh b/git-am.sh index 0126a77..c3bbd78 100755 --- a/git-am.sh +++ b/git-am.sh @@ -6,6 +6,7 @@ USAGE='[--signoff] [--dotest=] [--utf8] [--binary] [--3way] [--interactive] [--whitespace=