# git status --porcelain=v2 -z returns paths relative to root

1 messages from 2023-12-04 to 2023-12-04. Participants: Ondra Medek.
Thread: https://gitlist.dev/t/60583

## Ondra Medek, 2023-12-04 19:04

Subject: git status --porcelain=v2 -z returns paths relative to root
Message-ID: <CAJsoDaHbJvBkZR5V3rs5042ZrC1D32i_d6Lv1uS1ncWmWFkCMw@mail.gmail.com>
URL: https://gitlist.dev/e/CAJsoDaHbJvBkZR5V3rs5042ZrC1D32i_d6Lv1uS1ncWmWFkCMw%40mail.gmail.com

```
Hello,

git status Porcelain Format Version 1 ignores config
"status.relativePaths" and returns paths relative to the working tree
root always.

On the other hand, git status Porcelain Format Version 2 respects
config "status.relativePaths". But, if the "-z" option is provided,
i.e. "git status --porcelain=v2 -z" it also ignores
"status.relativePaths" and returns paths relative to the working tree
root. Is this a bug or undocumented behaviour? See
https://git-scm.com/docs/git-status#_porcelain_format_version_2

Note: I would welcome some option to force git status to return
relative paths to the current working directory always.

Best regards
Ondra Medek

```
