diff options
author | Vicent Martà <vicent@github.com> | 2013-07-10 13:15:28 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-07-10 13:15:28 -0700 |
commit | bd679796a57a44270b1f1a4d50652367086f58a3 (patch) | |
tree | 677bb10e844cc18726ae2720e49987bd7aedfef0 /include/git2/diff.h | |
parent | c0e529f379ded1311c7d8caba4af7c20c540c987 (diff) | |
parent | 125655fe3f0caf8b3d9fff2ec45ec694b34eed04 (diff) | |
download | libgit2-bd679796a57a44270b1f1a4d50652367086f58a3.tar.gz |
Merge pull request #1685 from arrbee/submodule-status-fixes
Improve submodules status data caching and compatibility
Diffstat (limited to 'include/git2/diff.h')
-rw-r--r-- | include/git2/diff.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h index 121c9df5c..71a8b72bf 100644 --- a/include/git2/diff.h +++ b/include/git2/diff.h @@ -78,7 +78,7 @@ typedef enum { GIT_DIFF_IGNORE_WHITESPACE_CHANGE = (1 << 3), /** Ignore whitespace at end of line */ GIT_DIFF_IGNORE_WHITESPACE_EOL = (1 << 4), - /** Exclude submodules from the diff completely */ + /** Treat all submodules as unmodified */ GIT_DIFF_IGNORE_SUBMODULES = (1 << 5), /** Use the "patience diff" algorithm (currently unimplemented) */ GIT_DIFF_PATIENCE = (1 << 6), @@ -314,6 +314,8 @@ typedef int (*git_diff_notify_cb)( * - `notify_cb` is an optional callback function, notifying the consumer of * which files are being examined as the diff is generated * - `notify_payload` is the payload data to pass to the `notify_cb` function + * - `ignore_submodules` overrides the submodule ignore setting for all + * submodules in the diff. */ typedef struct { unsigned int version; /**< version for the struct */ @@ -326,6 +328,7 @@ typedef struct { git_off_t max_size; /**< defaults to 512MB */ git_diff_notify_cb notify_cb; void *notify_payload; + git_submodule_ignore_t ignore_submodules; /** << submodule ignore rule */ } git_diff_options; #define GIT_DIFF_OPTIONS_VERSION 1 |