diff options
author | Russell Belfer <rb@github.com> | 2014-03-25 16:52:01 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-03-25 16:52:01 -0700 |
commit | 591e82952a2835c3d411ee5abec78be3b0816861 (patch) | |
tree | 9ace05f25fd42e679f7bfab705188555522bf177 /src/submodule.h | |
parent | a15c7802c86cf995fa658ef0624c46d352ce9a81 (diff) | |
download | libgit2-591e82952a2835c3d411ee5abec78be3b0816861.tar.gz |
Fix submodule leaks and invalid references
This cleans up some places I missed that could hold onto submodule
references and cleans up the way in which the repository cache is
both reloaded and released so that existing submodule references
aren't destroyed inappropriately.
Diffstat (limited to 'src/submodule.h')
-rw-r--r-- | src/submodule.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/submodule.h b/src/submodule.h index de7f7b581..053cb61e0 100644 --- a/src/submodule.h +++ b/src/submodule.h @@ -111,6 +111,11 @@ enum { GIT_SUBMODULE_STATUS__INDEX_MULTIPLE_ENTRIES = (1u << 27), }; +#define GIT_SUBMODULE_STATUS__ALL_WD_FLAGS \ + (GIT_SUBMODULE_STATUS_IN_WD | \ + GIT_SUBMODULE_STATUS__WD_OID_VALID | \ + GIT_SUBMODULE_STATUS__WD_FLAGS) + #define GIT_SUBMODULE_STATUS__CLEAR_INTERNAL(S) \ ((S) & ~(0xFFFFFFFFu << 20)) |