问题描述
在git文档中(例如git-checkout-index ),索引文件中有对stat信息的引用。什么是这个神秘的统计信息?
这是由 - 特别是文件权限,因为这是实际跟踪的内容。 (其他信息包括时间戳,文件大小,用户/组所有者以及inode。)
还有一个命令行程序,它实质上是该系统调用的包装器;试试 stat< file>
,你会看到所有这些信息。
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"?
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.
这篇关于什么是“统计信息”在一个git索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!