Re: git status -s -v: no override
From: Jeff King <hidden>
Date: 2016-06-15 22:51:03
On Fri, Apr 15, 2011 at 10:34:55PM +0100, Jacek Masiulaniec wrote:
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