git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Jacek MasiulaniecNext: Jonathan Nieder
Message 2 of 10 in “git status -s -v: no override”
  1. Jacek MasiulaniecApr 15, 2011
  2. Jeff KingApr 16, 2011
  3. Jonathan NiederApr 16, 2011
  4. Jeff KingApr 16, 2011
  5. status: store format option as an intJonathan Nieder, Apr 16, 2011
  6. Jonathan NiederApr 16, 2011
  7. Junio C HamanoApr 16, 2011
  8. Jonathan NiederApr 16, 2011
  9. Jeff KingApr 16, 2011
  10. status: store format option as an intJonathan Nieder, May 15, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.