2024-06-10 20:24:31 发布
网友
我使用pygit2访问回购的状态
status = repo.status() for filepath,flags in status.items(): print ("path %s flags %d", filepath, flags)
我似乎找不到任何关于如何解释标志的文档
有人能给我指一下正确的方向吗
documentation似乎很清楚这一点:
Repository.status() → {str: int}Reads the status of the repository and returns a dictionary with file paths as keys and status flags as values. See pygit2.GIT_STATUS_*.
Repository.status() → {str: int}
Reads the status of the repository and returns a dictionary with file paths as keys and status flags as values. See pygit2.GIT_STATUS_*.
这里有它们:https://github.com/libgit2/pygit2/blob/320ee5e733039d4a3cc952b287498dbc5737c353/src/pygit2.c#L312-L320
documentation似乎很清楚这一点:
这里有它们:https://github.com/libgit2/pygit2/blob/320ee5e733039d4a3cc952b287498dbc5737c353/src/pygit2.c#L312-L320
相关问题 更多 >
编程相关推荐