aboutsummaryrefslogtreecommitdiffstats
path: root/remote.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-02-14 17:53:47 -0800
committerJunio C Hamano <gitster@pobox.com>2025-02-14 17:53:48 -0800
commit5785d9143bcb3ef19452a83bc2e870ff3d5ed95a (patch)
tree03d6edd344fee12ea80680126b49700202fa5816 /remote.c
parentMerge branch 'bc/doc-adoc-not-txt' (diff)
parentbuiltin/clone: teach git-clone(1) the --revision= option (diff)
downloadgit-5785d9143bcb3ef19452a83bc2e870ff3d5ed95a.tar.gz
git-5785d9143bcb3ef19452a83bc2e870ff3d5ed95a.zip
Merge branch 'tc/clone-single-revision'
"git clone" learned to make a shallow clone for a single commit that is not necessarily be at the tip of any branch. * tc/clone-single-revision: builtin/clone: teach git-clone(1) the --revision= option parse-options: introduce die_for_incompatible_opt2() clone: introduce struct clone_opts in builtin/clone.c clone: add tags refspec earlier to fetch refspec clone: refactor wanted_peer_refs() clone: make it possible to specify --tags clone: cut down on global variables in clone.c
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote.c b/remote.c
index 5574b6a00f..c1cf363cca 100644
--- a/remote.c
+++ b/remote.c
@@ -1059,7 +1059,7 @@ int count_refspec_match(const char *pattern,
}
}
-static void tail_link_ref(struct ref *ref, struct ref ***tail)
+void tail_link_ref(struct ref *ref, struct ref ***tail)
{
**tail = ref;
while (ref->next)