merge(3p/git): Merge git upstream at v2.26.2
This commit is contained in:
commit
5229c9b232
1006 changed files with 149006 additions and 60819 deletions
7
third_party/git/builtin/cat-file.c
vendored
7
third_party/git/builtin/cat-file.c
vendored
|
|
@ -15,6 +15,7 @@
|
|||
#include "sha1-array.h"
|
||||
#include "packfile.h"
|
||||
#include "object-store.h"
|
||||
#include "promisor-remote.h"
|
||||
|
||||
struct batch_options {
|
||||
int enabled;
|
||||
|
|
@ -261,7 +262,7 @@ static void expand_atom(struct strbuf *sb, const char *atom, int len,
|
|||
strbuf_addstr(sb, data->rest);
|
||||
} else if (is_atom("deltabase", atom, len)) {
|
||||
if (data->mark_query)
|
||||
data->info.delta_base_sha1 = data->delta_base_oid.hash;
|
||||
data->info.delta_base_oid = &data->delta_base_oid;
|
||||
else
|
||||
strbuf_addstr(sb,
|
||||
oid_to_hex(&data->delta_base_oid));
|
||||
|
|
@ -524,8 +525,8 @@ static int batch_objects(struct batch_options *opt)
|
|||
if (opt->all_objects) {
|
||||
struct object_cb_data cb;
|
||||
|
||||
if (repository_format_partial_clone)
|
||||
warning("This repository has extensions.partialClone set. Some objects may not be loaded.");
|
||||
if (has_promisor_remote())
|
||||
warning("This repository uses promisor remotes. Some objects may not be loaded.");
|
||||
|
||||
cb.opt = opt;
|
||||
cb.expand = &data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue