How to retrieve the history of a file?

后端 未结 3 752
不知归路
不知归路 2021-01-01 14:04

I got another libgit2 issue and will be very grateful for your help.

I\'m trying to retrieve file history, i.e. list of commits where this file was changed. And it s

3条回答
  •  囚心锁ツ
    2021-01-01 14:16

    This is mainly followed in issues/495 of libgit2.
    Even though it is implemented in libgit2sharp (PR 963, for milestone 22), it is still "up for grabs" in libgit2 itself.

    The issue is documented in issues/3041: Provide log functionality wrapping the revwalk.
    The approach mentioned in the question was used in this libgit2sharp example and can be adapted to C using libgit2. It remains the current workaround, pending the resolution of 3041.

提交回复
热议问题