summaryrefslogtreecommitdiff
path: root/tests/test_main.c
diff options
context:
space:
mode:
authorJason Penny <jasonpenny4@gmail.com>2011-06-22 18:19:46 -0400
committerVicent Marti <tanoku@gmail.com>2011-07-09 13:49:50 +0200
commit205166d27c3ab937f1a106de87d511223abc5059 (patch)
tree8a819fd692aa5c11b592fa345a7b2002084fc763 /tests/test_main.c
parent7361857c50a03dae4bba3f1f3d371db41012658f (diff)
downloadlibgit2-205166d27c3ab937f1a106de87d511223abc5059.tar.gz
status: get blob object id of file on disk
Add git_status_hashfile() to get blob's object id for a file without adding it to the object database or needing a repository at all. This functionality is similar to `git hash-object` without '-w'.
Diffstat (limited to 'tests/test_main.c')
-rw-r--r--tests/test_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_main.c b/tests/test_main.c
index 2d3e5f954..1a35e6005 100644
--- a/tests/test_main.c
+++ b/tests/test_main.c
@@ -45,6 +45,7 @@ DECLARE_SUITE(threads);
DECLARE_SUITE(config);
DECLARE_SUITE(remotes);
DECLARE_SUITE(buffers);
+DECLARE_SUITE(status);
static libgit2_suite suite_methods[]= {
SUITE_NAME(core),
@@ -63,6 +64,7 @@ static libgit2_suite suite_methods[]= {
SUITE_NAME(config),
SUITE_NAME(remotes),
SUITE_NAME(buffers),
+ SUITE_NAME(status),
};
#define GIT_SUITE_COUNT (ARRAY_SIZE(suite_methods))