作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
使用 libgit2sharp
,如何计算ahead
或 behind
指标。赞本页 https://github.com/libgit2/libgit2sharp/branches
最佳答案
How to calculate ahead or behind metrics
Branch
熊一个
TrackingDetails
属性(property)。此属性暴露
AheadBy
和
BehindBy
可为空值(当分支没有上游配置或上游分支不存在时,将返回 null)。
git status -sb
相似的结果
like this page https://github.com/libgit2/libgit2sharp/branches
HEAD
的当前提示进行比较。 .此功能(比较两个本地分支)在 LibGit2Sharp 中不可用。
repo.ObjectDatabase.CalculateHistoryDivergence(Commit, Commit)
的拉取请求(参见
#564 )正在做饭。
关于libgit2sharp - 如何计算前支或后支,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19930935/
我需要遍历存储库的提交并为每次提交获取受影响的文件。这是我目前巨大的性能瓶颈。 我有一个 libgit 函数的 C++ 包装器,但这段代码应该足够容易理解。 std::vector Commit::g
我正在使用 libgit2(在 C++ 中)创建一个 git 存储库和一个提交。它工作正常,但是, checkout 会破坏所有本地文件。 但是它们似乎仍然存在于 repo 中。这就是我尝试查看存储库
我是一名优秀的程序员,十分优秀!