summaryrefslogtreecommitdiff
path: root/log-tree.h
diff options
context:
space:
mode:
authorDanny Lin <danny0838@gmail.com>2015-05-08 00:56:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-05-08 19:09:38 (GMT)
commit2ded109b51878fb0bc131945676c90f1d1051213 (patch)
treed4edcd771a31b45c20f1c1956a2f74b5a7e46519 /log-tree.h
parent16018ae5fb368151f3eff13730cf089b63f41962 (diff)
downloadgit-2ded109b51878fb0bc131945676c90f1d1051213.zip
git-2ded109b51878fb0bc131945676c90f1d1051213.tar.gz
git-2ded109b51878fb0bc131945676c90f1d1051213.tar.bz2
contrib/subtree: portability fix for string printing
'echo -n' is not portable, but this script used it as a way to give a string followed by a carriage return for progress messages. Introduce a new helper shell function "progress" and use printf as a more portable way to do this. As a side effect, this makes it unnecessary to have a raw CR in our source, which can be munged in some shells. For example, MsysGit trims CR before executing a shell script file in order to make it work right on Windows even if it uses CRLF as linefeeds. While at it, replace "echo" using printf in debug() and say() to eliminate the temptation of reintroducing the same bug. Signed-off-by: Danny Lin <danny0838@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.h')
0 files changed, 0 insertions, 0 deletions