Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] progress: use \r as EOL only if isatty(stderr) is true

From: Steffen Daode Nurpmeso <hidden>
Date: 2016-06-15 22:51:31

@ Tay Ray Chuan [off-list ref] wrote (2011-06-28 18:27+0200):
hmm, shouldn't the onus of checking tty fall on to callers of
progress* functions?
I dunno and have no overview of the git(1) codebase.  I have a
"arena/code.extern.repos/" directory tree and use a shell script
which manages it (e.g.  "$ arena-manager update" to pull all repos).
The output of this script is (also) redirected into a log file via
tee(1), and for git(1) invocations the resulting output is not very
useful.

I agree that it is maybe silly to not use --no-progress from within
the script (the script comes from cvs(1) background).  Maybe i should
change it to not use git porcelain but directly script the plumbing -
:-) -, but i am *very* new to git(1) and in the meanwhile this simple
patch pimps up my log output.

--
Ciao, Steffen
sdaoden(*)(gmail.com)
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help