我正在使用 Github API 来获取 repo 信息。因为有一个参数“大小”,它没有写在 github api 文档中它的确切含义。它是以字节为单位提交到存储库的代码行的大小吗?
在这里可以看到返回的响应中的大小参数
http://developer.github.com/v3/repos/
最佳答案
考虑到这些命令是针对完整存储库(列表、获取、编辑...),它应该引用该存储库中元素的完整大小,如“See the size of a github repo before cloning it?”中所述。
好像是在 Kb :
"size": 140,
:一旦我克隆它,它就会在我的硬盘上注册,大小略低于 140 Kb,"size": 40844,
)。 更新(2013 年 2 月,来自 nulltoken 的 comment)
答案“See the size of a github repo before cloning it?”确认git alternates objects的大小以Kb为单位.
The disk usage against the bare repository doesn't account for the shared object store and thus returns an "incomplete" value through the API call.
关于github-api - Github Repo信息中的参数大小是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14090214/