diff options
author | Russell Belfer <rb@github.com> | 2013-11-15 14:02:54 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-04-21 10:34:33 -0700 |
commit | 044afa4172ee46acf55f943eb9ea1210017b76d3 (patch) | |
tree | 1d48802e25f5ea148640ba746a2e230ef551a1ea /include/git2/checkout.h | |
parent | 28750a7d98ce5e23bac5c1d119109ded8e8aab73 (diff) | |
download | libgit2-rb/commit-modified-file.tar.gz |
Add git_diff_commit and last-changed examplerb/commit-modified-file
This adds a new diff API `git_diff_commit` which makes it easy to
generate a `git_diff` object that represents the changes in a given
commit. It follows the core Git rules for considering changes in
a merge commit - i.e. if a file has an exact match in any parent
of the commit, then the file is considered unmodified by the merge.
This also adds a new example program "last-changed" which takes a
list of filenames and for each one displays the SHA of the last
commit that changed that file.
Diffstat (limited to 'include/git2/checkout.h')
0 files changed, 0 insertions, 0 deletions