]> git.ipfire.org Git - thirdparty/git.git/blobdiff - ref-filter.c
Merge branch 'ma/doc-git-version'
[thirdparty/git.git] / ref-filter.c
index add429be7973634ef99c26847b90e15b146d9f4d..282cdad1036e24eb1de57b97c810bbdbfda558fb 100644 (file)
@@ -2705,6 +2705,15 @@ int parse_opt_ref_sorting(const struct option *opt, const char *arg, int unset)
        return 0;
 }
 
+void ref_sorting_release(struct ref_sorting *sorting)
+{
+       while (sorting) {
+               struct ref_sorting *next = sorting->next;
+               free(sorting);
+               sorting = next;
+       }
+}
+
 int parse_opt_merge_filter(const struct option *opt, const char *arg, int unset)
 {
        struct ref_filter *rf = opt->value;