]> git.ipfire.org Git - thirdparty/git.git/blobdiff - bundle.c
revision.[ch]: document and move code declared around "init"
[thirdparty/git.git] / bundle.c
index e359370cfcdc7d92077f1e3403d7f6529189de67..d50cfb5aa7e9c28afc121f9bf27499518a3fee37 100644 (file)
--- a/bundle.c
+++ b/bundle.c
@@ -267,11 +267,6 @@ int verify_bundle(struct repository *r,
                          (uintmax_t)r->nr);
                list_refs(r, 0, NULL);
 
-               if (header->filter.choice) {
-                       printf_ln("The bundle uses this filter: %s",
-                                 list_objects_filter_spec(&header->filter));
-               }
-
                r = &header->prerequisites;
                if (!r->nr) {
                        printf_ln(_("The bundle records a complete history."));
@@ -282,6 +277,12 @@ int verify_bundle(struct repository *r,
                                  (uintmax_t)r->nr);
                        list_refs(r, 0, NULL);
                }
+
+               printf_ln("The bundle uses this hash algorithm: %s",
+                         header->hash_algo->name);
+               if (header->filter.choice)
+                       printf_ln("The bundle uses this filter: %s",
+                                 list_objects_filter_spec(&header->filter));
        }
        return ret;
 }