diff options
author | Vicent Marti <vicent@github.com> | 2014-01-20 14:12:41 -0800 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-01-20 14:12:41 -0800 |
commit | e49c98e6efaa444ed73ac3b8318a693801f93184 (patch) | |
tree | a6c270f95f21d4d42ea4a2543a45f00656e07afe /include/git2 | |
parent | d62bf0bf83df307b81affbf7b576985392203fad (diff) | |
parent | b554ca5dc1b95234589367eda269a94bdda3d6ae (diff) | |
download | libgit2-e49c98e6efaa444ed73ac3b8318a693801f93184.tar.gz |
Merge pull request #2065 from ethomson/submodule_unmodified
"Uninitialized" submodules are "unmodified"
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/submodule.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git2/submodule.h b/include/git2/submodule.h index 907e5a15f..af08ba6eb 100644 --- a/include/git2/submodule.h +++ b/include/git2/submodule.h @@ -97,7 +97,8 @@ typedef enum { (((S) & GIT_SUBMODULE_STATUS__INDEX_FLAGS) == 0) #define GIT_SUBMODULE_STATUS_IS_WD_UNMODIFIED(S) \ - (((S) & GIT_SUBMODULE_STATUS__WD_FLAGS) == 0) + (((S) & (GIT_SUBMODULE_STATUS__WD_FLAGS & \ + ~GIT_SUBMODULE_STATUS_WD_UNINITIALIZED)) == 0) #define GIT_SUBMODULE_STATUS_IS_WD_DIRTY(S) \ (((S) & (GIT_SUBMODULE_STATUS_WD_INDEX_MODIFIED | \ |