diff options
| author | Sven Strickroth <email@cs-ware.de> | 2019-09-25 20:29:21 +0200 |
|---|---|---|
| committer | Sven Strickroth <email@cs-ware.de> | 2019-09-26 08:26:09 +0200 |
| commit | 452b7f8f4c665d4b2daa257f7f4cf9836c270085 (patch) | |
| tree | f699cfb4984be6d47e5a5a1ff5e5a14df8e0c531 /include/git2/stash.h | |
| parent | 9cd5240edf82b63b883bdf4be3e01db16f635a23 (diff) | |
| download | libgit2-452b7f8f4c665d4b2daa257f7f4cf9836c270085.tar.gz | |
Don't use enum for flags
Using an `enum` causes trouble when used with C++ as bitwise operations are not possible w/o casting (e.g., `opts.flags &= ~GIT_BLOB_FILTER_CHECK_FOR_BINARY;` is invalid as there is no `&=` operator for `enum`).
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Diffstat (limited to 'include/git2/stash.h')
| -rw-r--r-- | include/git2/stash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/stash.h b/include/git2/stash.h index bee26f1dc..22448ccd6 100644 --- a/include/git2/stash.h +++ b/include/git2/stash.h @@ -127,7 +127,7 @@ typedef struct git_stash_apply_options { unsigned int version; /** See `git_stash_apply_flags_t`, above. */ - git_stash_apply_flags flags; + uint32_t flags; /** Options to use when writing files to the working directory. */ git_checkout_options checkout_options; |
