diff options
author | David Catmull <dtcatmull@verisk.com> | 2017-07-21 17:07:10 -0600 |
---|---|---|
committer | David Catmull <dtcatmull@verisk.com> | 2017-11-30 07:59:45 -0700 |
commit | 4ccacdc8ec7524065b0d78a10c9deccd04bcbda7 (patch) | |
tree | 53971495b91c9e8b128a03acb18043340b5c090c /include/git2 | |
parent | 661cf4d4974d6381f1482f169f9292262192140d (diff) | |
download | libgit2-4ccacdc8ec7524065b0d78a10c9deccd04bcbda7.tar.gz |
status: Add a baseline field to git_status_options for comparing to trees other than HEAD
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/status.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/git2/status.h b/include/git2/status.h index 671113955..4b86818b7 100644 --- a/include/git2/status.h +++ b/include/git2/status.h @@ -173,12 +173,16 @@ typedef enum { * The `pathspec` is an array of path patterns to match (using * fnmatch-style matching), or just an array of paths to match exactly if * `GIT_STATUS_OPT_DISABLE_PATHSPEC_MATCH` is specified in the flags. + * + * The `baseline` is the tree to be used for comparison to the working directory + * and index; defaults to HEAD. */ typedef struct { unsigned int version; git_status_show_t show; unsigned int flags; git_strarray pathspec; + git_tree *baseline; } git_status_options; #define GIT_STATUS_OPTIONS_VERSION 1 |