summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-04-22 13:42:48 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-04-22 13:42:48 -0700
commit7d28d691749a9c37aa1f490454f1d2c8a285e672 (patch)
treedb766d2b9f99b6b16340c0fe74e774ce60e6a413
parentMerge branch 'en/pull-do-not-rebase-after-fast-forwarding' (diff)
parentCodingGuidelines: allow ${#posix} == strlen($posix) (diff)
downloadtgif-7d28d691749a9c37aa1f490454f1d2c8a285e672.tar.xz
Merge branch 'jc/allow-strlen-substitution-in-shell-scripts'
Coding guideline update. * jc/allow-strlen-substitution-in-shell-scripts: CodingGuidelines: allow ${#posix} == strlen($posix)
-rw-r--r--Documentation/CodingGuidelines2
1 files changed, 0 insertions, 2 deletions
diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines
index ed4e443a3c..390ceece52 100644
--- a/Documentation/CodingGuidelines
+++ b/Documentation/CodingGuidelines
@@ -91,8 +91,6 @@ For shell scripts specifically (not exhaustive):
- No shell arrays.
- - No strlen ${#parameter}.
-
- No pattern replacement ${parameter/pattern/string}.
- We use Arithmetic Expansion $(( ... )).