libgit2 how to get the the status of the current directory?

后端 未结 1 1133
你的背包
你的背包 2021-01-27 20:38

How can I get the status of a single directory, rather than the whole repository?

I have looked at the following:

  • git_status_list_new which

相关标签:
1条回答
  • 2021-01-27 20:48

    git_status_list_new accepts a git_status_options struct, which contains a pathspec member which controls which files will be included in the list. You can use that to limit your returned statuses to those in a single directory.

    0 讨论(0)
提交回复
热议问题