summaryrefslogtreecommitdiff
path: root/diffcore-delta.c
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2008-01-08 16:24:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-01-09 20:23:59 (GMT)
commit13e4760a1649d24519f95ae2375704738b2b219e (patch)
treeed145b7befbc0139ff539558d8d4f8b7fdc8d6e7 /diffcore-delta.c
parentf85fd3f0d1213a2b714fddc7a834817aceeca932 (diff)
downloadgit-13e4760a1649d24519f95ae2375704738b2b219e.zip
git-13e4760a1649d24519f95ae2375704738b2b219e.tar.gz
git-13e4760a1649d24519f95ae2375704738b2b219e.tar.bz2
recv_sideband: Do not use ANSI escape sequence on dumb terminals.
The "clear to end of line" sequence is used to nicely output the progress indicator without leaving garbage on the terminal. However, this works only on ANSI capable terminals. We use the same check as in color.c to find out whether the terminal supports this feature and use a workaround (a few spaces in a row) if it does not. [jc: as an old fashoned git myself, and given the fact that the possible prefix and suffix are small number of short constant strings, I actually prefer a simpler-and-more-stupid approach. This is with Nico's clean-up.] Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore-delta.c')
0 files changed, 0 insertions, 0 deletions