refs: drop strbuf_ prefix from helpers
The helper functions (strbuf_branchname, strbuf_check_branch_ref, and strbuf_check_tag_ref) are about handling branch and tag names, and it is a non-essential fact that these functions use strbuf to hold these names. Rename them to make it clarify that these are more about "ref". Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -742,7 +742,7 @@ static void setup_branch_path(struct branch_info *branch)
|
||||
&branch->oid, &branch->refname, 0))
|
||||
repo_get_oid_committish(the_repository, branch->name, &branch->oid);
|
||||
|
||||
strbuf_branchname(&buf, branch->name, INTERPRET_BRANCH_LOCAL);
|
||||
copy_branchname(&buf, branch->name, INTERPRET_BRANCH_LOCAL);
|
||||
if (strcmp(buf.buf, branch->name)) {
|
||||
free(branch->name);
|
||||
branch->name = xstrdup(buf.buf);
|
||||
|
Reference in New Issue
Block a user