When I run:
git difftool -d
It creates a temporary directory containing the files to be shown in the diff. The structure looks like this:
The "left" and "right" directories are clear. But what are the "lindex" and "rindex" files? What do they contain? How can I view them? Sometimes there's no "rindex" but a "wtindex" file instead.
They represent indexes, generated by
git update-index in
lindexrepresents LOCAL: A temporary file containing the contents of the file on the current branch.
rindexrepresents REMOTE: A temporary file containing the contents of the file to be merged.
wtindexrepresented MERGED (working tree): the result of the merge in progress
Those indexes are updated using
--index-info in order to facilitate the diff between any locale modification you will be doing for each file, and the three versions mentioned above.