summaryrefslogtreecommitdiff
path: root/builtin/commit-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-04-05 17:09:02 -0700
committerJunio C Hamano <gitster@pobox.com>2024-04-05 22:50:11 -0700
commit8bfe4861913843b6aac8656aabfd43ac405362e8 (patch)
tree08b8374f4bc0dbe11aa97e2d5348396387dca3d8 /builtin/commit-tree.c
parente97f4a6d94103c43a08c864c6ab63e6086812998 (diff)
t: teach lint that RHS of 'local VAR=VAL' needs to be quoted
Teach t/check-non-portable-shell.pl that right hand side of the assignment done with "local VAR=VAL" need to be quoted. We deliberately target only VAL that begins with $ so that we can catch - $variable_reference and positional parameter reference like $4 - $(command substitution) - ${variable_reference-with_magic} while excluding - $'\n' that is a bash-ism freely usable in t990[23] - $(( arithmetic )) whose result should be $IFS safe. - $? that also is $IFS safe Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-tree.c')
0 files changed, 0 insertions, 0 deletions