diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-12-14 15:55:47 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-12-14 15:55:47 +0900 |
commit | d818458088af2b3d6b83619668d52c9dad41b2cd (patch) | |
tree | acd17bf681bfa13031d5c044cbdbdf82599564aa /Documentation | |
parent | cb3d2e535a36cc0e4d21cc73b8525a1c0e779d03 (diff) | |
parent | 2ad150e35e52705a97f18bee08f34e00a6557d6f (diff) | |
download | git-d818458088af2b3d6b83619668d52c9dad41b2cd.tar.gz |
Merge branch 'sa/git-var-empty'
"git var UNKNOWN_VARIABLE" and "git var VARIABLE" with the variable
given an empty value used to behave identically. Now the latter
just gives an empty output, while the former still gives an error
message.
* sa/git-var-empty:
var: allow GIT_EDITOR to return null
var: do not print usage() with a correct invocation
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-var.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/git-var.txt b/Documentation/git-var.txt index 6aa521fab2..0ab5bfa7d7 100644 --- a/Documentation/git-var.txt +++ b/Documentation/git-var.txt @@ -13,7 +13,8 @@ SYNOPSIS DESCRIPTION ----------- -Prints a Git logical variable. +Prints a Git logical variable. Exits with code 1 if the variable has +no value. OPTIONS ------- |