mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 18:11:43 +00:00
Rename internal function.
This commit is contained in:
parent
9ecf860d48
commit
31dda64716
@ -533,7 +533,7 @@ static int handle_linear_syntax(git_object **out, git_object *obj, const char *m
|
|||||||
return 0;
|
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 *str = git__strdup(path);
|
||||||
char *tok;
|
char *tok;
|
||||||
@ -572,7 +572,7 @@ static int handle_colon_syntax(git_object **out,
|
|||||||
tree = (git_tree*)obj;
|
tree = (git_tree*)obj;
|
||||||
|
|
||||||
/* Find the blob at the given path. */
|
/* 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);
|
git_tree_free(tree);
|
||||||
return git_object_lookup(out, repo, &oid, GIT_OBJ_ANY);
|
return git_object_lookup(out, repo, &oid, GIT_OBJ_ANY);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user