1
0
mirror of https://github.com/git/git.git synced 2024-09-22 18:21:31 +02:00
git/contrib/subtree
Danny Lin 2ded109b51 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>
2015-05-08 12:09:38 -07:00
..
t Merge branch 'ep/shell-assign-and-export-vars' 2014-06-06 11:38:51 -07:00
.gitignore subtree: add an install-html target 2014-10-15 15:17:08 -07:00
COPYING
git-subtree.sh contrib/subtree: portability fix for string printing 2015-05-08 12:09:38 -07:00
git-subtree.txt subtree: fix AsciiDoc list item continuation 2015-01-06 15:03:52 -08:00
INSTALL
Makefile subtree: add an install-html target 2014-10-15 15:17:08 -07:00
README
todo

Please read git-subtree.txt for documentation.

Please don't contact me using github mail; it's slow, ugly, and worst of
all, redundant. Email me instead at apenwarr@gmail.com and I'll be happy to
help.

Avery