diff options
author | Ben Straub <bstraub@github.com> | 2012-06-07 12:16:39 -0700 |
---|---|---|
committer | Ben Straub <bstraub@github.com> | 2012-06-07 12:16:39 -0700 |
commit | 31dda6471687f0ec6985f3db2536e93a8c012df2 (patch) | |
tree | 0b8d6d07f64e069f1b7e5746f4bb579f94a38ac0 /src | |
parent | 9ecf860d48b39241a2dce61dd33455816064d56b (diff) | |
download | libgit2-31dda6471687f0ec6985f3db2536e93a8c012df2.tar.gz |
Rename internal function.
Diffstat (limited to 'src')
-rw-r--r-- | src/revparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/revparse.c b/src/revparse.c index 102e27a1..6bcdeb3a 100644 --- a/src/revparse.c +++ b/src/revparse.c @@ -533,7 +533,7 @@ static int handle_linear_syntax(git_object **out, git_object *obj, const char *m return 0; } -static int tree_entry_bypath(git_oid *out, git_tree *tree, git_repository *repo, const char *path) +static int oid_for_tree_path(git_oid *out, git_tree *tree, git_repository *repo, const char *path) { char *str = git__strdup(path); char *tok; @@ -572,7 +572,7 @@ static int handle_colon_syntax(git_object **out, tree = (git_tree*)obj; /* Find the blob at the given path. */ - tree_entry_bypath(&oid, tree, repo, path); + oid_for_tree_path(&oid, tree, repo, path); git_tree_free(tree); return git_object_lookup(out, repo, &oid, GIT_OBJ_ANY); } |