summaryrefslogtreecommitdiff
path: root/include/git2/status.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-07-09 15:05:14 +0200
committerVicent Marti <tanoku@gmail.com>2011-07-09 15:05:14 +0200
commitc52736fa5226141754918cabf55c22be9c2aee1b (patch)
tree97b9d36ba49045c53ab12a6529b7c6260065498b /include/git2/status.h
parent3b2a423c3fb9e434c427b819d3281ae9e277091d (diff)
downloadlibgit2-c52736fa5226141754918cabf55c22be9c2aee1b.tar.gz
status: Cleanup
The `hashfile` function has been moved to ODB, next to `git_odb_hash`. Global state has been removed from the dirent call in `status.c`, because global state is killing the rainforest and causing global warming.
Diffstat (limited to 'include/git2/status.h')
-rw-r--r--include/git2/status.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/git2/status.h b/include/git2/status.h
index b8d473447..7946cc1f3 100644
--- a/include/git2/status.h
+++ b/include/git2/status.h
@@ -52,18 +52,6 @@ GIT_BEGIN_DECL
#define GIT_STATUS_IGNORED (1 << 6)
/**
- * Read a file from disk and fill a git_oid with the object id
- * that the file would have if it were written to the Object
- * Database as a loose blob. Similar functionality to git.git's
- * `git hash-object` without the `-w` flag.
- *
- * @param out oid structure the result is written into.
- * @param path file to read and determine object id for
- * @return GIT_SUCCESS if valid; error code otherwise
- */
-GIT_EXTERN(int) git_status_hashfile(git_oid *out, const char *path);
-
-/**
* Gather file statuses and run a callback for each one.
*
* The callback is passed the path of the file, the status and the data pointer