diff options
author | Jason Penny <jasonpenny4@gmail.com> | 2011-06-23 18:51:22 -0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-07-09 13:49:50 +0200 |
commit | 20361b2f6988c994a09c53ad563f847c200948ea (patch) | |
tree | 348ef433d73a796205dba1337dcfce5d058d959c /include/git2/status.h | |
parent | 3af6b34a76cd953f485b8733981493b65becf59e (diff) | |
download | libgit2-20361b2f6988c994a09c53ad563f847c200948ea.tar.gz |
status: get status for single file
Add git_status_file to be able to retrieve status of single file by
supplying a path.
Diffstat (limited to 'include/git2/status.h')
-rw-r--r-- | include/git2/status.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/status.h b/include/git2/status.h index 72912c59c..b8d473447 100644 --- a/include/git2/status.h +++ b/include/git2/status.h @@ -76,6 +76,16 @@ GIT_EXTERN(int) git_status_hashfile(git_oid *out, const char *path); */ GIT_EXTERN(int) git_status_foreach(git_repository *repo, int (*callback)(const char *, unsigned int, void *), void *payload); +/** + * Get file status for a single file + * + * @param status_flags the status value + * @param repo a repository object + * @param path the file to retrieve status for, rooted at the repo's workdir + * @return GIT_SUCCESS + */ +GIT_EXTERN(int) git_status_file(unsigned int *status_flags, git_repository *repo, const char *path); + /** @} */ GIT_END_DECL #endif |