# Re: 'git status -z' missing separators on OSX

2 messages from 2015-06-17 to 2015-06-17. Participants: Tad Hardesty, Jeff King.
Thread: https://gitlist.dev/t/39658

## Tad Hardesty, 2015-06-17 14:07

Subject: Re: 'git status -z' missing separators on OSX
Message-ID: <20150617140738.UMQU25489.txasav-vm07.suddenlink.net@[10.1.40.186]>
URL: https://gitlist.dev/e/20150617140738.UMQU25489.txasav-vm07.suddenlink.net%40%5B10.1.40.186%5D

```
Everything looks normal using the commands you described, and it does appear to only affect status:

~/test (master)$ type git
git is hashed (/usr/local/bin/git)
~/test (master)$ git config --list
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=true
~/test (master)$ GIT_TRACE=1 git status -z
08:59:11.806197 git.c:348               trace: built-in: git 'status' '-z'
~/test (master)$ git log --oneline -1 -z | hexdump -C
00000000  35 31 35 39 30 65 30 20  49 6e 69 74 69 61 6c 20  |51590e0 Initial |
00000010  63 6f 6d 6d 69 74 2e 00                           |commit..|
00000018
~/test (master)$ touch c d
~/test (master)$ git status -z | hexdump -C
00000000  3f 3f 20 63 3f 3f 20 64                           |?? c?? d|
00000008

This is again with 2.4.3 from git-scm.com.

```

## Jeff King, 2015-06-17 19:17

Subject: Re: 'git status -z' missing separators on OSX
Message-ID: <20150617191703.GC25304@peff.net>
URL: https://gitlist.dev/e/20150617191703.GC25304%40peff.net
In-Reply-To: <20150617140738.UMQU25489.txasav-vm07.suddenlink.net@[10.1.40.186]>

```
On Wed, Jun 17, 2015 at 09:07:36AM -0500, Tad Hardesty wrote:

> Everything looks normal using the commands you described, and it does appear to only affect status:
> 
> ~/test (master)$ type git
> git is hashed (/usr/local/bin/git)
> ~/test (master)$ git config --list
> core.repositoryformatversion=0
> core.filemode=true
> core.bare=false
> core.logallrefupdates=true
> core.ignorecase=true
> core.precomposeunicode=true
> ~/test (master)$ GIT_TRACE=1 git status -z
> 08:59:11.806197 git.c:348               trace: built-in: git 'status' '-z'
> ~/test (master)$ git log --oneline -1 -z | hexdump -C
> 00000000  35 31 35 39 30 65 30 20  49 6e 69 74 69 61 6c 20  |51590e0 Initial |
> 00000010  63 6f 6d 6d 69 74 2e 00                           |commit..|
> 00000018
> ~/test (master)$ touch c d
> ~/test (master)$ git status -z | hexdump -C
> 00000000  3f 3f 20 63 3f 3f 20 64                           |?? c?? d|
> 00000008
> 
> This is again with 2.4.3 from git-scm.com.

Hmph. I don't really have any more ideas, then. I think my next step
would be to walk it through a debugger (the interesting function is
wt_shortstatus_status, or wt_shortstatus_other).

-Peff

```
