On Wed, Jan 28, 2009 at 1:15 PM, Junio C Hamano <gitster@xxxxxxxxx> wrote: > Another approach we've taken in other places to avoid the "Huh?" that > triggered this thread is to do something like: > > if there is no argument > then > if reading from tty > then > echo >&2 "Reading from terminal, waiting for input..." > fi > process stdin > else > for arg > do > process $arg > done > fi > > Unfortunately, this will invalidate your "check -t 0 and error out" patch, > but some people may find it easier to work with and more friendly. Well perhaps we should just deal w/ctrl-c only and ignore the terminal check altogether. j. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html