diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-12-03 11:32:38 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-12-03 12:38:49 +0900 |
commit | 93e5e048f84138a632b239632c9b45ae238cdf1c (patch) | |
tree | c36bf96685b1dee17310963333b7d6f2bb2e6db5 /branch.c | |
parent | 5bcbde9e49c14f4e47a0ed5fc60470f3d4447efd (diff) |
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>
Diffstat (limited to 'branch.c')
-rw-r--r-- | branch.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -372,7 +372,7 @@ int read_branch_desc(struct strbuf *buf, const char *branch_name) */ int validate_branchname(const char *name, struct strbuf *ref) { - if (strbuf_check_branch_ref(ref, name)) { + if (check_branch_ref(ref, name)) { int code = die_message(_("'%s' is not a valid branch name"), name); advise_if_enabled(ADVICE_REF_SYNTAX, _("See `man git check-ref-format`")); |