summaryrefslogtreecommitdiff
path: root/compat/strtoumax.c
diff options
context:
space:
mode:
authorLibravatar Jens Lehmann <Jens.Lehmann@web.de>2013-04-01 21:02:00 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-04-01 13:05:54 -0700
commit7b294bf4948931a915cee2d5a692235e9b9c0e27 (patch)
treef3b480c3ac33ce25575dc87e3b86b29fc7b1cfb8 /compat/strtoumax.c
parentsubmodule: add 'deinit' command (diff)
downloadtgif-7b294bf4948931a915cee2d5a692235e9b9c0e27.tar.xz
submodule deinit: clarify work tree removal message
The output of "git submodule deinit sub" of a populated submodule prints rm 'sub' as the first line unless used with the -f option. The "rm 'sub'" line is exactly the same output the user gets when using "git rm sub" (because that command is used with the --dry-run option under the hood to determine if the submodule is clean), which can easily lead to the false impression that the submodule would be permanently removed. Also users might be confused that the "rm 'submodule'" line won't show up when the -f option is used, as the test is skipped in this case. Silence the "rm 'submodule'" output by using the --quiet option for "git rm" and always print Cleared directory 'submodule' instead as the first output line. This line is printed as long as the directory exists, no matter if empty or not. Also extend the tests in t7400 to make sure the "Cleared directory" line is printed correctly. Reported-by: Phil Hord <phil.hord@gmail.com> Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/strtoumax.c')
0 files changed, 0 insertions, 0 deletions