aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-08-21 08:36:22 -0300
committerEuAndreh <eu@euandre.org>2021-08-21 08:36:30 -0300
commitb628d374dd69c697fb8b0d35d42f600d7dfb1128 (patch)
tree76b55406cbb966283035c8ed1b9c247d77ca35b9 /src
parentsrc/gistatic.c: create functions for loops; encode refs.html page dynamic con... (diff)
downloadgistatic-b628d374dd69c697fb8b0d35d42f600d7dfb1128.tar.gz
gistatic-b628d374dd69c697fb8b0d35d42f600d7dfb1128.tar.xz
src/gistatic.c: repo_refs_({tag => tags}|{branch => branches})_each
Diffstat (limited to '')
-rw-r--r--src/gistatic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gistatic.c b/src/gistatic.c
index f3411f9..26c5166 100644
--- a/src/gistatic.c
+++ b/src/gistatic.c
@@ -1437,7 +1437,7 @@ cleanup:
return ret;
}
-static int repo_refs_branch_each(
+static int repo_refs_branches_each(
FILE *const refs_fd,
struct git_repository *const repo,
struct git_reference *const ref
@@ -1525,7 +1525,7 @@ cleanup:
return ret;
}
-static int repo_refs_tag_each(
+static int repo_refs_tags_each(
FILE *const refs_fd,
struct git_repository *const repo,
struct git_reference *const ref,
@@ -1776,7 +1776,7 @@ static int repo_refs_write(
struct git_reference *ref;
git_branch_t _btype;
while (!(e = git_branch_next(&ref, &_btype, branch_iter))) {
- e = repo_refs_branch_each(refs_fd, repo, ref);
+ e = repo_refs_branches_each(refs_fd, repo, ref);
git_reference_free(ref);
if (e) {
goto cleanup;
@@ -1829,7 +1829,7 @@ static int repo_refs_write(
}
while (!(e = git_reference_next(&ref, ref_iter))) {
- e = repo_refs_tag_each(refs_fd, repo, ref, project_name);
+ e = repo_refs_tags_each(refs_fd, repo, ref, project_name);
git_reference_free(ref);
if (e) {
goto cleanup;