Re: git status in clean working dir

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: git status in clean working dir

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:59

David Bremner [off-list ref] writes:
According to the manual page for git-status (version 1.5.6.3)

       If there is no path that is different between the index file
       and the current HEAD commit (i.e., there is nothing to commit
       by running git-commit), the command exits with non-zero status.

But it doesn't seem to work that way for me.

git status -a 

exits with 0
...
Try "git status -a >/dev/null" or "git --no-pager status -a".

I think this is an instance of the c8af1de (make git-status use a pager,
2008-04-23) stupidity raising its ugly head again.

Do people mind reverting that patch?

Re: git status in clean working dir

From: Abhijit Menon-Sen <hidden>
Date: 2016-06-15 22:44:59

At 2008-07-21 19:30:16 -0700, gitster@pobox.com wrote:
I think this is an instance of the c8af1de (make git-status use a
pager, 2008-04-23) stupidity raising its ugly head again.

Do people mind reverting that patch?
I think that is an excellent idea. I've found myself annoyed time and
again by "git status" starting the pager for just a couple of lines of
output.

-- ams
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help