I am planning to use Rugged for programmatically accessing Git repositories.
I need to find out the files changed in a specific commit.
Commit object provides the following, according to the documentation.
I tried the "tree" route, but could not succeed.
I see a similar question asked in SO, in relation to Grit. But, I would like to use Rugged.
In ruby/grit, how do I get a list of files changed in a specific commit?
You can use Rugged::Commit#diff
to get the changes between the commit and its first parent or another Rugged::Commit
or Rugged::Tree
.