summaryrefslogtreecommitdiff
path: root/src/diff.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-04-13 15:00:29 -0700
committerRussell Belfer <rb@github.com>2012-04-13 15:00:29 -0700
commit14a513e05866721f5ceba18cf425568d2f6af143 (patch)
tree4c31553a2c971adf579d2c5c287749ce45949c8c /src/diff.h
parentd1f331564da9d6110b80b538a501da0c66e59142 (diff)
downloadlibgit2-14a513e05866721f5ceba18cf425568d2f6af143.tar.gz
Add support for pathspec to diff and status
This adds preliminary support for pathspecs to diff and status. The implementation is not very optimized (it still looks at every single file and evaluated the the pathspec match against them), but it works.
Diffstat (limited to 'src/diff.h')
-rw-r--r--src/diff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/diff.h b/src/diff.h
index b4a375586..9da07c295 100644
--- a/src/diff.h
+++ b/src/diff.h
@@ -24,6 +24,7 @@ enum {
struct git_diff_list {
git_repository *repo;
git_diff_options opts;
+ git_vector pathspec;
git_vector deltas; /* vector of git_diff_file_delta */
git_iterator_type_t old_src;
git_iterator_type_t new_src;