index 2b2abebd608be337db35a3de4b83d37d43061acb..18f14b5be89b4e0240f59b13313308f3c09d012c 100644 (file)
SYNOPSIS
--------
SYNOPSIS
--------
-'git-sh-setup'
+'. "$(git --exec-path)/git-sh-setup"'
DESCRIPTION
-----------
DESCRIPTION
-----------
This documentation is meant for people who are studying the
Porcelain-ish scripts and/or are writing new ones.
This documentation is meant for people who are studying the
Porcelain-ish scripts and/or are writing new ones.
-The `git-sh-setup` scriptlet is designed to be sourced (using
+The 'git-sh-setup' scriptlet is designed to be sourced (using
`.`) by other shell scripts to set up some variables pointing at
the normal git directories and a few helper shell functions.
`.`) by other shell scripts to set up some variables pointing at
the normal git directories and a few helper shell functions.
end-user action in the reflog, when the script updates a
ref.
end-user action in the reflog, when the script updates a
ref.
+git_editor::
+ runs an editor of user's choice (GIT_EDITOR, core.editor, VISUAL or
+ EDITOR) on a given file, but error out if no editor is specified
+ and the terminal is dumb.
+
is_bare_repository::
outputs `true` or `false` to the standard output stream
to indicate if the repository is a bare repository
is_bare_repository::
outputs `true` or `false` to the standard output stream
to indicate if the repository is a bare repository
if so. Used by scripts that require working tree
(e.g. `checkout`).
if so. Used by scripts that require working tree
(e.g. `checkout`).
+get_author_ident_from_commit::
+ outputs code for use with eval to set the GIT_AUTHOR_NAME,
+ GIT_AUTHOR_EMAIL and GIT_AUTHOR_DATE variables for a given commit.
+
Author
------
Author
------
GIT
---
GIT
---
-Part of the gitlink:git[7] suite
-
+Part of the linkgit:git[1] suite