diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-04 17:09:21 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-22 17:02:55 +0200 |
commit | 64bbd47a32e6aaed539bafd109eef624f24fbae7 (patch) | |
tree | 041d8dedeb30610522d413e424abd2ea6c4d17c3 /include/git2/submodule.h | |
parent | 5a9fc6c83c2fd12ce312d1042ec2c1e6abad4033 (diff) | |
download | libgit2-64bbd47a32e6aaed539bafd109eef624f24fbae7.tar.gz |
submodule: don't let status change an existing instance
As submodules are becomes more like values, we should not let a status
check to update its properties. Instead of taking a submodule, have
status take a repo and submodule name.
Diffstat (limited to 'include/git2/submodule.h')
-rw-r--r-- | include/git2/submodule.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/git2/submodule.h b/include/git2/submodule.h index e41dc49d2..737570844 100644 --- a/include/git2/submodule.h +++ b/include/git2/submodule.h @@ -626,16 +626,17 @@ GIT_EXTERN(int) git_submodule_reload_all(git_repository *repo, int force); * This looks at a submodule and tries to determine the status. It * will return a combination of the `GIT_SUBMODULE_STATUS` values above. * How deeply it examines the working directory to do this will depend - * on the `git_submodule_ignore_t` value for the submodule - which can be - * set either temporarily or permanently with `git_submodule_set_ignore()`. + * on the `git_submodule_ignore_t` value for the submodule. * * @param status Combination of `GIT_SUBMODULE_STATUS` flags - * @param submodule Submodule for which to get status + * @param repo the repository in which to look + * @param name name of the submodule * @return 0 on success, <0 on error */ GIT_EXTERN(int) git_submodule_status( unsigned int *status, - git_submodule *submodule); + git_repository *repo, + const char *name); /** * Get the locations of submodule information. |