summaryrefslogtreecommitdiff
path: root/t/t7609-merge-co-error-msgs.sh
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2017-09-20 21:41:12 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-21 14:05:00 +0900
commit29c0e902a803d8865b9421edadf2ca7c565e355c (patch)
tree6d4948dbea4d83ebe123ee336285d7dfdd620529 /t/t7609-merge-co-error-msgs.sh
parentrevision: replace "struct cmdline_pathspec" with argv_array (diff)
downloadtgif-29c0e902a803d8865b9421edadf2ca7c565e355c.tar.xz
pathspec doc: parse_pathspec does not maintain references to args
The command line arguments passed to main() are valid for the life of a program, but the same is not true for all other argv-style arrays (e.g. when a caller creates an argv_array). Clarify that parse_pathspec does not rely on the argv passed to it to remain valid. This makes it easier to tell that callers like "git rev-list --stdin" are safe and ensures that that is more likely to remain true as the implementation of parse_pathspec evolves. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7609-merge-co-error-msgs.sh')
0 files changed, 0 insertions, 0 deletions