4

I'm pulling a repo every 10 seconds and need to check what files have changed after each pull.

Is it possible to do this with go-git?

ecl0
  • 385
  • 1
  • 3
  • 13
  • 1
    Probably. Have you tried? Please explain how far you have gotten and what problem you are experiencing. – jsageryd Apr 09 '18 at 12:17

1 Answers1

5

You can use the (*object.Commit).Patch method to diff two arbitrary commits. This provides information about which files where changed and what the differences were.

orirawlings
  • 724
  • 1
  • 6
  • 10