Skip to content

Commit f90ad79

Browse files
committed
doc: add information regarding external commands
Git supports running external commands in the user's PATH as if they were built-in commands (see execv_dashed_external in git.c). This feature was not fully documented in Git's user-facing documentation. This commit adds a short documentation of this feature, making it easier for users to discover and use. Signed-off-by: Omri Sarig <omri.sarig13@gmail.com>
1 parent 2cc7191 commit f90ad79

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Documentation/git.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,13 @@ System
487487
`$HOMEDRIVE$HOMEPATH` if both `$HOMEDRIVE` and `$HOMEPATH` exist;
488488
otherwise `$USERPROFILE` if `$USERPROFILE` exists.
489489

490+
`PATH`::
491+
When a user runs 'git <command>' that is not part of the core Git programs
492+
(installed in GIT_EXEC_PATH), 'git-<command>' that is runnable by the user
493+
in a directory on `$PATH` is invoked. Argument passed after the command
494+
name are passed as-is to the runnable program. These commands precedes
495+
alias expansion.
496+
490497
The Git Repository
491498
~~~~~~~~~~~~~~~~~~
492499
These environment variables apply to 'all' core Git commands. Nb: it

0 commit comments

Comments
 (0)