Re: git status -s -v: no override
- From
Jeff King <peff@peff.net>
- Date
- Apr 16, 2011, 00:09 UTC
- Message-ID
- <20110416000918.GB9334@sigill.intra.peff.net>
- In-Reply-To
- <BANLkTimKO7ihPpJ80Ad1kbYaMv1ycu0y9A@mail.gmail.com>
On Fri, Apr 15, 2011 at 10:34:55PM +0100, Jacek Masiulaniec wrote:
Show 17 quoted lines
> Small git-status argument processing issue: > > [jacekm@localhost test]$ git init > Initialized empty Git repository in /private/tmp/test/.git/ > [jacekm@localhost test]$ git status -v > # On branch master > # > # Initial commit > # > nothing to commit (create/copy files and use "git add" to track) > [jacekm@localhost test]$ git status -s > [jacekm@localhost test]$ git status -v -s > [jacekm@localhost test]$ git status -s -v > [jacekm@localhost test]$ > > Things look consistent until the last command: -v does not override -s, > which is unexpected given that -s does override -v.
Sort of. I think you are expecting "-v" to mean "use the long output format", but it doesn't. Instead, "-v" actually indicates that we should show a diff along with the usual output (in your case, the diff is empty).
There is no option that means "counteract -s or --porcelain seen earlier on the command line and use the default long format", which I think is what you want.
-Peff