summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-02-24 23:34:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-02-25 00:24:25 (GMT)
commit94c8ccaaba4ac8b0225f5adeae4ff29f01951bce (patch)
treece14f90077730aafa2c00a2df0ae16a063418cf8 /Documentation
parent48a7c1c49d675fa37b609b499dd9e27439ec7f51 (diff)
downloadgit-94c8ccaaba4ac8b0225f5adeae4ff29f01951bce.zip
git-94c8ccaaba4ac8b0225f5adeae4ff29f01951bce.tar.gz
git-94c8ccaaba4ac8b0225f5adeae4ff29f01951bce.tar.bz2
rev-parse: --local-env-vars option
This prints the list of repo-local environment variables. Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-rev-parse.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt
index d677c72..33092a3 100644
--- a/Documentation/git-rev-parse.txt
+++ b/Documentation/git-rev-parse.txt
@@ -149,6 +149,12 @@ shown. If the pattern does not contain a globbing character (`?`,
--is-bare-repository::
When the repository is bare print "true", otherwise "false".
+--local-env-vars::
+ List the GIT_* environment variables that are local to the
+ repository (e.g. GIT_DIR or GIT_WORK_TREE, but not GIT_EDITOR).
+ Only the names of the variables are listed, not their value,
+ even if they are set.
+
--short::
--short=number::
Instead of outputting the full SHA1 values of object names try to