c# - LibGit2Sharp get repository changes after pull -
how can following information after git-pull libgit2sharp:
- which files has been moved
- which files has been created
- which files has been deleted
the git-pull request self works perfectly:
var result = repo.network.pull(new libgit2sharp.signature("admin", "mail@......net", new datetimeoffset(datetime.now)), options); i looked @ result of pull-method, seems not contain needed information.
thank much!
the mergeresult type exposes commit property not null when merge successful.
in order find out files have changed, 1 have leverage repo.diff.compare() method compare commit first parent.
Comments
Post a Comment