what is "stat information" in a git index?
Asked Answered
V

1

4

In git documentation (like git-checkout-index http://linux.die.net/man/1/git-checkout-index ), there are references to "stat information" in the index file. What is this mysterious "stat information"?

Vaticide answered 8/3, 2011 at 15:23 Comment(0)
A
3

That's information that would be returned by stat() - in particular, file permissions, since that's what's actually tracked. (Other information includes timestamps, filesize, user/group owners, and the inode.)

There's also a command-line program stat which is essentially a wrapper for that system call; try stat <file> and you'll see all that kind of information.

Aerodynamics answered 8/3, 2011 at 15:27 Comment(1)
And you can use git ls-files --debug to see what git has cached.Bruin

© 2022 - 2024 — McMap. All rights reserved.