summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2017-12-01 11:45:53 +0000
committerGitHub <noreply@github.com>2017-12-01 11:45:53 +0000
commit429bb3575474a3d25ee1c9814612d8d01b3378e8 (patch)
treeed7e479004d8a848fbb69174b3290ee352b71ce6 /include
parent344b4ead60da5fc3514f602a8e1a6af15173cc31 (diff)
parent4ccacdc8ec7524065b0d78a10c9deccd04bcbda7 (diff)
downloadlibgit2-429bb3575474a3d25ee1c9814612d8d01b3378e8.tar.gz
Merge pull request #4318 from Uncommon/amend_status
Add git_status_file_at
Diffstat (limited to 'include')
-rw-r--r--include/git2/status.h4
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