diff options
| author | Edward Thomson <ethomson@microsoft.com> | 2015-01-17 22:47:03 -0600 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-02-14 09:25:35 -0500 |
| commit | 8639ea5f98ac53e532820e8a186f8a1d6d98f573 (patch) | |
| tree | 938c73c06ba68294a7d7156acb11a5a5c5342d9f /include | |
| parent | 55798fd1536f055fc23a760c41d679fc60cd2ead (diff) | |
| download | libgit2-8639ea5f98ac53e532820e8a186f8a1d6d98f573.tar.gz | |
checkout: introduce GIT_CHECKOUT_DONT_WRITE_INDEX
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/checkout.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/git2/checkout.h b/include/git2/checkout.h index 8314c623d..4fe1340b9 100644 --- a/include/git2/checkout.h +++ b/include/git2/checkout.h @@ -135,7 +135,10 @@ typedef enum { /** Only update existing files, don't create new ones */ GIT_CHECKOUT_UPDATE_ONLY = (1u << 7), - /** Normally checkout updates index entries as it goes; this stops that */ + /** + * Normally checkout updates index entries as it goes; this stops that. + * Implies `GIT_CHECKOUT_DONT_WRITE_INDEX`. + */ GIT_CHECKOUT_DONT_UPDATE_INDEX = (1u << 8), /** Don't refresh index/config/etc before doing checkout */ @@ -166,6 +169,9 @@ typedef enum { /** Don't overwrite existing files or folders */ GIT_CHECKOUT_DONT_REMOVE_EXISTING = (1u << 22), + /** Normally checkout writes the index upon completion; this prevents that. */ + GIT_CHECKOUT_DONT_WRITE_INDEX = (1u << 23), + /** * THE FOLLOWING OPTIONS ARE NOT YET IMPLEMENTED */ |
