Skip to content

Commit 0b77301

Browse files
committed
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
2 parents 74339f8 + a84fd3b commit 0b77301

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Documentation/CodingGuidelines

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ For shell scripts specifically (not exhaustive):
175175

176176
does not have such a problem.
177177

178+
- Even though "local" is not part of POSIX, we make heavy use of it
179+
in our test suite. We do not use it in scripted Porcelains, and
180+
hopefully nobody starts using "local" before they are reimplemented
181+
in C ;-)
182+
178183

179184
For C programs:
180185

0 commit comments

Comments
 (0)