cleanly to the current repository. This includes checks on the
bundle format itself as well as checking that the prerequisite
commits exist and are fully linked in the current repository.
- Information about additional capabilities, such as "object filter",
- is printed. See "Capabilities" in link:technical/bundle-format.html
- for more information. Finally, 'git bundle' prints a list of
- missing commits, if any. The exit code is zero for success, but
- will be nonzero if the bundle file is invalid.
+ Then, 'git bundle' prints a list of missing commits, if any.
+ Finally, information about additional capabilities, such as "object
+ filter", is printed. See "Capabilities" in link:technical/bundle-format.html
+ for more information. The exit code is zero for success, but will
+ be nonzero if the bundle file is invalid.
list-heads <file>::
Lists the references defined in the bundle. If followed by a
(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."));
(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));
}
return ret;
}
<TAG-2> refs/tags/v2
<TAG-3> refs/tags/v3
<COMMIT-P> HEAD
- The bundle uses this filter: $filter
The bundle records a complete history.
+ The bundle uses this filter: $filter
EOF
test_cmp expect actual &&