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

Path differences between git status & git status --porcelain

From
TKTone Kastlunger <users.giulietta@gmail.com>
Date
Mar 26, 2022, 09:25 UTC
Message-ID
<CAHCc5YXmegAV-sSpLLpY19rXhnxYEgM+RzZHJ=saG8nD5HsGKg@mail.gmail.com>

Hello; we have noticed that the results displayed by git status & git status --porcelain differ in the path information shown. For instance, in one of our test repos:

"git status" output from a "<gitreporoot>/test" folder:
  Changes not staged for commit:
    (use "git add <file>..." to update what will be committed)
    (use "git checkout -- <file>..." to discard changes in working directory)
  modified:   ../src/api/db.py  <---- Notice the ".." correctly
displaying the relative path
       to the (modified) file
"git status --porcelain"  output from the same location:
    ....cutted stuff to keep things clean...
       M src/api/db.py   <---- Notice the missing ".." in front of the
(modified) file path.

Is this intentional/expected behaviour; and if not, we were wondering if this is a known issue?

Best, Tone Kastlunger Giulietta SW

Next: Junio C Hamano
Message 1 of 3 in “Path differences between git status & git status --porcelain”
  1. Tone KastlungerMar 26, 2022
  2. Junio C HamanoMar 27, 2022
  3. Tone KastlungerMar 27, 2022

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.