Re: [PATCH v2 00/10] Add 'ls-files --debug-json' to dump the index in json
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jun 26, 2019, 15:05 UTC
- Message-ID
- <nycvar.QRO.7.76.6.1906261704330.44@tvgsbejvaqbjf.bet>
- In-Reply-To
- <27211d51-c77f-84f8-49c0-4bc104baa266@ramsayjones.plus.com>
Hi Ramsay,
On Tue, 25 Jun 2019, Ramsay Jones wrote:
Show 32 quoted lines
> On 25/06/2019 15:10, Johannes Schindelin wrote: > > Hi Duy, > [snip] > > >> 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!]).
Well, live and learn. So for debugging purposes, we already have a good facility and would not need JSON at all.
Good to know, Dscho