Re: [PATCH v2 00/10] Add 'ls-files --debug-json' to dump the index in json
- From
Ramsay Jones <ramsay@ramsayjones.plus.com>
- Date
- Jun 25, 2019, 17:08 UTC
- Message-ID
- <27211d51-c77f-84f8-49c0-4bc104baa266@ramsayjones.plus.com>
- In-Reply-To
- <nycvar.QRO.7.76.6.1906251601240.44@tvgsbejvaqbjf.bet>
On 25/06/2019 15:10, Johannes Schindelin wrote:
> Hi Duy,
[snip]
Show 6 quoted lines
>> Again our experiences differ. Mine is mostly about extensions, >> probably because I had to work on them more often. For normal entries >> "ls-files --debug" gives you 99% what's in the index file already. > > Like the device. And the ctime. And the file size. And the uid/gid. Is > that what you mean?
Hmm, well I think so:
$ git ls-files --debug git.c git-compat-util.h
git-compat-util.h
ctime: 1561457278:502638001
mtime: 1561457278:502638001
dev: 2049 ino: 262663
uid: 1000 gid: 1000
size: 35440 flags: 0
git.c
ctime: 1561457278:518646000
mtime: 1561457278:518646000
dev: 2049 ino: 263083
uid: 1000 gid: 1000
size: 26837 flags: 0
$ I have occasionally added stuff to the '--debug' output while debugging something, but the above is usually sufficient for my uses. (Having said that, I have not had the need to debug extensions [yet!]).
ATB, Ramsay Jones