{"thread":{"id":"35632","subject":"Subject: Something like cat-file for the index?","startedAt":"2014-01-10T11:53:35Z","lastAt":"2014-01-10T14:27:31Z","messageCount":3,"participants":["Enno Weichert","Thomas Gummerer"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"232994","messageId":"CABtFQN6n_FKTfGt1ubkL51t8n_iJ0vcYW4ZEYLOkAsFNCq0GQw@mail.gmail.com","threadId":"35632","inReplyTo":null,"subject":"Subject: Something like cat-file for the index?","fromName":"Enno Weichert","fromEmail":"enno.weichert@gmail.com","sentAt":"2014-01-10T11:53:35Z","receivedAt":"2014-01-10T11:53:35Z","isPatch":false,"sender":{"key":"enno.weichert@gmail.com","avatar":null},"body":"Hi,\n\nI'd like to have a more technical look into the index file and what/how it\nstores data; call it educational spelunking.\n\nI know the index-format.txt but I'd really like to save me the work to\nimplement a pretty-printed output based on it.\nI know ls-files but that's obviously not the whole thing.\n\nSo: is there something like cat-file, that basically gives me a readable\nversion of the information (version number and all...) in the index already\nimplemented or did nobody care until now?\n"},{"id":"232995","messageId":"871u0g2dtn.fsf@gmail.com","threadId":"35632","inReplyTo":"CABtFQN6n_FKTfGt1ubkL51t8n_iJ0vcYW4ZEYLOkAsFNCq0GQw@mail.gmail.com","subject":"Re: Subject: Something like cat-file for the index?","fromName":"Thomas Gummerer","fromEmail":"t.gummerer@gmail.com","sentAt":"2014-01-10T12:58:44Z","receivedAt":"2014-01-10T12:58:44Z","isPatch":false,"sender":{"key":"t.gummerer@gmail.com","avatar":"https://avatars.githubusercontent.com/u/191004?v=4"},"body":"\nHi,\n\nEnno Weichert <enno.weichert@gmail.com> writes:\n> Hi,\n>\n> I'd like to have a more technical look into the index file and what/how it\n> stores data; call it educational spelunking.\n>\n> I know the index-format.txt but I'd really like to save me the work to\n> implement a pretty-printed output based on it.\n> I know ls-files but that's obviously not the whole thing.\n>\n> So: is there something like cat-file, that basically gives me a readable\n> version of the information (version number and all...) in the index already\n> implemented or did nobody care until now?\n\nYou can use `git ls-files --debug` and `git ls-files --stage` to get all\nthe information about the files in the index.  The meaning of the flags\nis the only thing that's not shown by the command, and I don't think\nthere is a tool yet to examine them.\n\nThe undocumented --resolve-undo flag to git ls-files shows you the\nresolve undo data that is stored in the index.\n\nIf you build git yourself, the `test-dump-cache-tree` helper can be used\nto show all information about the cache-tree that is stored in the\nindex.\n\nThe you can get the version of the index either by using\n`test-index-version` when you build git yourself, or by using `file\n.git/index`, which in addition will give you the number of entries that\nare in the index.\n\n--\nThomas\n"},{"id":"232998","messageId":"CABtFQN4q9un81W3G-o7tbG3-LUSEf2YdP0e9zP84JGYu6qwOfw@mail.gmail.com","threadId":"35632","inReplyTo":"871u0g2dtn.fsf@gmail.com","subject":"Re: Subject: Something like cat-file for the index?","fromName":"Enno Weichert","fromEmail":"enno.weichert@gmail.com","sentAt":"2014-01-10T14:27:31Z","receivedAt":"2014-01-10T14:27:31Z","isPatch":false,"sender":{"key":"enno.weichert@gmail.com","avatar":null},"body":"Thank you :)\n\nOn 1/10/14, Thomas Gummerer <t.gummerer@gmail.com> wrote:\n>\n> Hi,\n>\n> Enno Weichert <enno.weichert@gmail.com> writes:\n>> Hi,\n>>\n>> I'd like to have a more technical look into the index file and what/how\n>> it\n>> stores data; call it educational spelunking.\n>>\n>> I know the index-format.txt but I'd really like to save me the work to\n>> implement a pretty-printed output based on it.\n>> I know ls-files but that's obviously not the whole thing.\n>>\n>> So: is there something like cat-file, that basically gives me a readable\n>> version of the information (version number and all...) in the index\n>> already\n>> implemented or did nobody care until now?\n>\n> You can use `git ls-files --debug` and `git ls-files --stage` to get all\n> the information about the files in the index.  The meaning of the flags\n> is the only thing that's not shown by the command, and I don't think\n> there is a tool yet to examine them.\n>\n> The undocumented --resolve-undo flag to git ls-files shows you the\n> resolve undo data that is stored in the index.\n>\n> If you build git yourself, the `test-dump-cache-tree` helper can be used\n> to show all information about the cache-tree that is stored in the\n> index.\n>\n> The you can get the version of the index either by using\n> `test-index-version` when you build git yourself, or by using `file\n> .git/index`, which in addition will give you the number of entries that\n> are in the index.\n>\n> --\n> Thomas\n>\n"}]}