]> git.ipfire.org Git - thirdparty/git.git/blobdiff - ref-filter.c
contrib/coccinnelle: add equals-null.cocci
[thirdparty/git.git] / ref-filter.c
index add429be7973634ef99c26847b90e15b146d9f4d..08a3f839c979ea11ada8f830f5640a965f3058b9 100644 (file)
@@ -1037,7 +1037,7 @@ int verify_ref_format(struct ref_format *format)
                     format->quote_style == QUOTE_TCL) &&
                     used_atom[at].atom_type == ATOM_RAW &&
                     used_atom[at].u.raw_data.option == RAW_BARE)
-                       die(_("--format=%.*s cannot be used with"
+                       die(_("--format=%.*s cannot be used with "
                              "--python, --shell, --tcl"), (int)(ep - sp - 2), sp + 2);
                cp = ep + 1;
 
@@ -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;