From: Shawn O. Pearce Date: Thu, 28 Dec 2006 07:34:48 GMT Subject: [PATCH 1/11] Use GIT_REFLOG_ACTION environment variable instead. Message-ID: <20061228073448.GA17867@spearce.org> 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=