Re: git status in clean working dir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 23, 2008 at 11:56:48PM -0700, Ask Bjørn Hansen wrote:

>> (2) Then why are we even allowing to configure the plumbing to page?
>
> I don't have an opinion on the the appropriateness of paging various  
> commands, but to solve the problem of scripts getting tripped up by the 
> paging, couldn't the plumping check if STDOUT is a tty and only do the 
> paging if so?
>
> (In Perl "page_output(...) if $pager_configured and -t STDOUT")

We already do this, so "git status >/dev/null" produces the correct exit
code. But scripts don't necessarily redirect stdout.

-Peff
--
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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux