diff options
| author | Derrick Stolee <derrickstolee@github.com> | 2022-10-12 12:52:37 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-10-12 09:13:25 -0700 |
| commit | 89bd7fedf947484da08e2722d663fdac23a431be (patch) | |
| tree | 3b293a3fd460a91bc59ae0511338348f3a5c2aec /bundle-uri.c | |
| parent | bundle-uri: fetch a list of bundles (diff) | |
| download | git-89bd7fedf947484da08e2722d663fdac23a431be.tar.gz git-89bd7fedf947484da08e2722d663fdac23a431be.zip | |
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>
Diffstat (limited to 'bundle-uri.c')
| -rw-r--r-- | bundle-uri.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bundle-uri.c b/bundle-uri.c index 70bfd2defe..d9060be707 100644 --- a/bundle-uri.c +++ b/bundle-uri.c @@ -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; /* |
