什么是“统计信息”在一个git索引? [英] what is "stat information" in a git index?

查看:151
本文介绍了什么是“统计信息”在一个git索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在git文档中(例如git-checkout-index http:// linux。 die.net/man/1/git-checkout-index ),索引文件中有对stat信息的引用。什么是这个神秘的统计信息?

解决方案

这是由 stat() - 特别是文件权限,因为这是实际跟踪的内容。 (其他信息包括时间戳,文件大小,用户/组所有者以及inode。)

还有一个命令行程序 stat ,它实质上是该系统调用的包装器;试试 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索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆