Skip to content

Commit 3f4bc3e

Browse files
Miklos Vajnagitster
authored andcommitted
git-sh-setup: document git_editor() and get_author_ident_from_commit()
These 2 functions were missing from the manpage. Signed-off-by: Miklos Vajna <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c458570 commit 3f4bc3e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Documentation/git-sh-setup.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ set_reflog_action::
4444
end-user action in the reflog, when the script updates a
4545
ref.
4646

47+
git_editor::
48+
runs an editor of user's choice (GIT_EDITOR, core.editor, VISUAL or
49+
EDITOR) on a given file, but error out if no editor is specified
50+
and the terminal is dumb.
51+
4752
is_bare_repository::
4853
outputs `true` or `false` to the standard output stream
4954
to indicate if the repository is a bare repository
@@ -57,6 +62,10 @@ require_work_tree::
5762
if so. Used by scripts that require working tree
5863
(e.g. `checkout`).
5964

65+
get_author_ident_from_commit::
66+
outputs code for use with eval to set the GIT_AUTHOR_NAME,
67+
GIT_AUTHOR_EMAIL and GIT_AUTHOR_DATE variables for a given commit.
68+
6069

6170
Author
6271
------

0 commit comments

Comments
 (0)