aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-sh-setup.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-10-18 13:50:12 -0700
committerJunio C Hamano <gitster@pobox.com>2013-10-18 13:50:12 -0700
commit6c2bec96a8215bad7745d559c631e45332c5a9ee (patch)
tree23cf1f401779b2052407e42644853beb8f676cc3 /Documentation/git-sh-setup.txt
parentdec034a34e3887beaea9a7a390fd950346806c1e (diff)
parentc3e2d18996e4ef92f37bf56b2fefe2124d26659e (diff)
downloadgit-6c2bec96a8215bad7745d559c631e45332c5a9ee.tar.gz
Merge branch 'jc/reflog-doc'
Document rules to use GIT_REFLOG_ACTION variable in the scripted Porcelain. git-rebase--interactive locally violates them, but it is a leaf user that does not call out to or dot-source other scripts, so it does not urgently need to be fixed. * jc/reflog-doc: setup_reflog_action: document the rules for using GIT_REFLOG_ACTION
Diffstat (limited to 'Documentation/git-sh-setup.txt')
-rw-r--r--Documentation/git-sh-setup.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/Documentation/git-sh-setup.txt b/Documentation/git-sh-setup.txt
index 5d709d02c3..4f67c4cde6 100644
--- a/Documentation/git-sh-setup.txt
+++ b/Documentation/git-sh-setup.txt
@@ -41,9 +41,11 @@ usage::
die with the usage message.
set_reflog_action::
- set the message that will be recorded to describe the
- end-user action in the reflog, when the script updates a
- ref.
+ Set GIT_REFLOG_ACTION environment to a given string (typically
+ the name of the program) unless it is already set. Whenever
+ the script runs a `git` command that updates refs, a reflog
+ entry is created using the value of this string to leave the
+ record of what command updated the ref.
git_editor::
runs an editor of user's choice (GIT_EDITOR, core.editor, VISUAL or