summaryrefslogtreecommitdiff
path: root/include/git2.h
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-03-28 16:45:36 -0700
committerRussell Belfer <arrbee@arrbee.com>2012-03-28 16:45:36 -0700
commitbfc9ca595aa2f189743f2a7b9812f05def78ec88 (patch)
treebfb9ade537f03433d1d1876045e4c5f2d56f3ccc /include/git2.h
parent277e304149011bb615ae258e25492350cbfd4d46 (diff)
downloadlibgit2-bfc9ca595aa2f189743f2a7b9812f05def78ec88.tar.gz
Added submodule API and use in status
When processing status for a newly checked out repo, it is possible that there will be submodules that have not yet been initialized. The only way to distinguish these from untracked directories is to have some knowledge of submodules. This commit adds a new submodule API which, given a name or path, can determine if it appears to be a submodule and can give information about the submodule.
Diffstat (limited to 'include/git2.h')
-rw-r--r--include/git2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2.h b/include/git2.h
index 1711ff8be..7d053c4af 100644
--- a/include/git2.h
+++ b/include/git2.h
@@ -40,7 +40,7 @@
#include "git2/net.h"
#include "git2/status.h"
#include "git2/indexer.h"
-
+#include "git2/submodule.h"
#include "git2/notes.h"
#endif