summaryrefslogtreecommitdiff
path: root/Documentation/CodingGuidelines
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-05-11 06:27:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-05-11 06:27:22 (GMT)
commit0b77301bf4c8e3b37beee0b5c8dcf26beaa6e789 (patch)
tree366376ef6246a47b16118fa996dc9589b4f230c5 /Documentation/CodingGuidelines
parent74339f814c31ff7c4717fa401467d0f8c0ba70c1 (diff)
parenta84fd3bcc6253f847af3366ebb9de9b8f441a624 (diff)
downloadgit-0b77301bf4c8e3b37beee0b5c8dcf26beaa6e789.zip
git-0b77301bf4c8e3b37beee0b5c8dcf26beaa6e789.tar.gz
git-0b77301bf4c8e3b37beee0b5c8dcf26beaa6e789.tar.bz2
Merge branch 'jc/test-allows-local'
Document that our test can use "local" keyword. * jc/test-allows-local: CodingGuidelines: explicitly allow "local" for test scripts
Diffstat (limited to 'Documentation/CodingGuidelines')
-rw-r--r--Documentation/CodingGuidelines5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines
index 1ff6d8e..e3af089 100644
--- a/Documentation/CodingGuidelines
+++ b/Documentation/CodingGuidelines
@@ -175,6 +175,11 @@ For shell scripts specifically (not exhaustive):
does not have such a problem.
+ - Even though "local" is not part of POSIX, we make heavy use of it
+ in our test suite. We do not use it in scripted Porcelains, and
+ hopefully nobody starts using "local" before they are reimplemented
+ in C ;-)
+
For C programs: