diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-12 10:29:58 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-12 10:29:58 +0200 |
| commit | 77a15fe8e12c2ac3aa1ab93d8fd86b6d3e06ce35 (patch) | |
| tree | 0c41536f61ef7d421008982c7475ef1937c23d7c /include/git2/checkout.h | |
| parent | 9cdd657887d5fc7cf5a5819e60900d67513ca1ff (diff) | |
| parent | 1f1f5c639e7e7df3f0c65dbdbcc6b884041a8647 (diff) | |
| download | libgit2-77a15fe8e12c2ac3aa1ab93d8fd86b6d3e06ce35.tar.gz | |
Merge pull request #3018 from ethomson/stash_apply
Stash apply
Diffstat (limited to 'include/git2/checkout.h')
| -rw-r--r-- | include/git2/checkout.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/git2/checkout.h b/include/git2/checkout.h index ed39bd3cb..6cf9ed8bd 100644 --- a/include/git2/checkout.h +++ b/include/git2/checkout.h @@ -272,7 +272,16 @@ typedef struct git_checkout_options { */ git_strarray paths; - git_tree *baseline; /**< expected content of workdir, defaults to HEAD */ + /** The expected content of the working directory; defaults to HEAD. + * If the working directory does not match this baseline information, + * that will produce a checkout conflict. + */ + git_tree *baseline; + + /** Like `baseline` above, though expressed as an index. This + * option overrides `baseline`. + */ + git_index *baseline_index; /**< expected content of workdir, expressed as an index. */ const char *target_directory; /**< alternative checkout path to workdir */ |
