summaryrefslogtreecommitdiff
path: root/t/t1507-rev-parse-upstream.sh
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2013-03-19 15:45:26 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-03-20 07:41:42 -0700
commite24afab09137d785f07e62aee8936b548436d21f (patch)
tree01e48338246224850ba99bcf8e82c23e16add1d7 /t/t1507-rev-parse-upstream.sh
parentt2200: check that "add -u" limits itself to subdirectory (diff)
downloadtgif-e24afab09137d785f07e62aee8936b548436d21f.tar.xz
add: make pathless 'add [-u|-A]' warning a file-global function
Currently warn_pathless_add() is only called directly by cmd_add(), but that is about to change. Move its definition higher in the file and pass the "--update" or "--all" option name used in its message through globals instead of function arguments to make it easier to call without passing values that will not change through the call chain. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1507-rev-parse-upstream.sh')
0 files changed, 0 insertions, 0 deletions