c# - LibGit2Sharp get repository changes after pull -


how can following information after git-pull libgit2sharp:

  1. which files has been moved
  2. which files has been created
  3. 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

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -