libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.59k stars 383 forks source link

Walk through a specific subdirectory #1074

Open npc203 opened 3 years ago

npc203 commented 3 years ago

How do I walk through a specific subdirectory? , in terminal I can do something similar to git log -- path/to/folder
However in this lib I couldn't find a way to do so, Atleast I couldn't find it in the docs https://www.pygit2.org/recipes/git-log.html
Thanks in advance.

williamfzc commented 7 months ago

Same here.

michaelkvance commented 4 days ago

It would be similarly useful to be able to do status() queries on subdirectories rather than the whole repository. Right now you eat the cost of a global and cache it, which is fine but can have a high watermark and induce startup delays.