bundle: add flags to verify_bundle()
The verify_bundle() method has a 'verbose' option, but we will want to extend this method to have more granular control over its output. First, replace this 'verbose' option with a new 'flags' option with a single possible value: VERIFY_BUNDLE_VERBOSE. Signed-off-by: Derrick Stolee <derrickstolee@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
c23f592117
commit
89bd7fedf9
@ -303,7 +303,12 @@ static int unbundle_from_file(struct repository *r, const char *file)
|
||||
if ((bundle_fd = read_bundle_header(file, &header)) < 0)
|
||||
return 1;
|
||||
|
||||
if ((result = unbundle(r, &header, bundle_fd, NULL)))
|
||||
/*
|
||||
* Skip the reachability walk here, since we will be adding
|
||||
* a reachable ref pointing to the new tips, which will reach
|
||||
* the prerequisite commits.
|
||||
*/
|
||||
if ((result = unbundle(r, &header, bundle_fd, NULL, 0)))
|
||||
return 1;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user