From: Stefan Beller <sbeller@google.com>
To: git@vger.kernel.org
Cc: Stefan Beller <sbeller@google.com>
Subject: [PATCH 144/194] commit: add repository argument to parse_commit
Date: Mon, 5 Feb 2018 16:16:59 -0800 [thread overview]
Message-ID: <20180206001749.218943-46-sbeller@google.com> (raw)
In-Reply-To: <20180206001749.218943-1-sbeller@google.com>
Add a repository argument to allow callers of parse_commit to
be more specific about which repository to handle. This is a small
mechanical change; it doesn't change the implementation to handle
repositories other than the_repository yet.
As with the previous commits, use a macro to catch callers passing a
repository other than the_repository at compile time.
The included coccinelle semantic patch will adapt any new callers in
the diff produced by `make coccicheck`.
Signed-off-by: Stefan Beller <sbeller@google.com>
---
blame.c | 4 ++--
builtin/checkout.c | 4 ++--
builtin/commit.c | 4 ++--
builtin/describe.c | 4 ++--
builtin/merge-base.c | 2 +-
builtin/name-rev.c | 2 +-
builtin/notes.c | 2 +-
builtin/reflog.c | 2 +-
builtin/show-branch.c | 4 ++--
commit.c | 18 +++++++++---------
commit.h | 3 ++-
contrib/coccinelle/object_store.cocci | 7 +++++++
fetch-pack.c | 6 +++---
fsck.c | 2 +-
merge-recursive.c | 4 ++--
notes-utils.c | 2 +-
remote.c | 2 +-
revision.c | 6 +++---
sequencer.c | 12 ++++++------
sha1_name.c | 4 ++--
shallow.c | 4 ++--
tree.c | 2 +-
walker.c | 2 +-
23 files changed, 55 insertions(+), 47 deletions(-)
diff --git a/blame.c b/blame.c
index 592bedd0e0..ccd6a5097b 100644
--- a/blame.c
+++ b/blame.c
@@ -1433,7 +1433,7 @@ static void pass_blame(struct blame_scoreboard *sb, struct blame_origin *origin,
if (sg_origin[i])
continue;
- if (parse_commit(p))
+ if (parse_commit(the_repository, p))
continue;
porigin = find(p, origin);
if (!porigin)
@@ -1572,7 +1572,7 @@ void assign_blame(struct blame_scoreboard *sb, int opt)
* so hold onto it in the meantime.
*/
blame_origin_incref(suspect);
- parse_commit(commit);
+ parse_commit(the_repository, commit);
if (sb->reverse ||
(!(commit->object.flags & UNINTERESTING) &&
!(revs->max_age != -1 && commit->date < revs->max_age)))
diff --git a/builtin/checkout.c b/builtin/checkout.c
index cef2b4f2ad..4428fd5da5 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -403,7 +403,7 @@ static void describe_detached_head(const char *msg, struct commit *commit)
{
struct strbuf sb = STRBUF_INIT;
- if (!parse_commit(commit))
+ if (!parse_commit(the_repository, commit))
pp_commit_easy(CMIT_FMT_ONELINE, commit, &sb);
if (print_sha1_ellipsis()) {
fprintf(stderr, "%s %s... %s\n", msg,
@@ -724,7 +724,7 @@ static void describe_one_orphan(struct strbuf *sb, struct commit *commit)
strbuf_addstr(sb, " ");
strbuf_add_unique_abbrev(sb, commit->object.oid.hash, DEFAULT_ABBREV);
strbuf_addch(sb, ' ');
- if (!parse_commit(commit))
+ if (!parse_commit(the_repository, commit))
pp_commit_easy(CMIT_FMT_ONELINE, commit, sb);
strbuf_addch(sb, '\n');
}
diff --git a/builtin/commit.c b/builtin/commit.c
index cd3144f9f4..d15592ad45 100644
--- a/builtin/commit.c
+++ b/builtin/commit.c
@@ -1467,7 +1467,7 @@ static void print_summary(const char *prefix, const struct object_id *oid,
commit = lookup_commit(the_repository, oid);
if (!commit)
die(_("couldn't look up newly created commit"));
- if (parse_commit(commit))
+ if (parse_commit(the_repository, commit))
die(_("could not parse newly created commit"));
strbuf_addstr(&format, "format:%h] %s");
@@ -1692,7 +1692,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
current_head = NULL;
else {
current_head = lookup_commit_or_die(&oid, "HEAD");
- if (parse_commit(current_head))
+ if (parse_commit(the_repository, current_head))
die(_("could not parse HEAD commit"));
}
verbose = -1; /* unspecified */
diff --git a/builtin/describe.c b/builtin/describe.c
index 5bd0920ebd..870a3a780b 100644
--- a/builtin/describe.c
+++ b/builtin/describe.c
@@ -249,7 +249,7 @@ static unsigned long finish_depth_computation(
best->depth++;
while (parents) {
struct commit *p = parents->item;
- parse_commit(p);
+ parse_commit(the_repository, p);
if (!(p->object.flags & SEEN))
commit_list_insert_by_date(p, list);
p->object.flags |= c->object.flags;
@@ -367,7 +367,7 @@ static void describe_commit(struct object_id *oid, struct strbuf *dst)
}
while (parents) {
struct commit *p = parents->item;
- parse_commit(p);
+ parse_commit(the_repository, p);
if (!(p->object.flags & SEEN))
commit_list_insert_by_date(p, &list);
p->object.flags |= c->object.flags;
diff --git a/builtin/merge-base.c b/builtin/merge-base.c
index 08d91b1f0c..426882818c 100644
--- a/builtin/merge-base.c
+++ b/builtin/merge-base.c
@@ -127,7 +127,7 @@ static void add_one_commit(struct object_id *oid, struct rev_collect *revs)
commit = lookup_commit(the_repository, oid);
if (!commit ||
(commit->object.flags & TMP_MARK) ||
- parse_commit(commit))
+ parse_commit(the_repository, commit))
return;
ALLOC_GROW(revs->commit, revs->nr + 1, revs->alloc);
diff --git a/builtin/name-rev.c b/builtin/name-rev.c
index 2cbb702c2c..57db381381 100644
--- a/builtin/name-rev.c
+++ b/builtin/name-rev.c
@@ -71,7 +71,7 @@ static void name_rev(struct commit *commit,
int parent_number = 1;
char *to_free = NULL;
- parse_commit(commit);
+ parse_commit(the_repository, commit);
if (commit->date < cutoff)
return;
diff --git a/builtin/notes.c b/builtin/notes.c
index 56d99c2789..9100ac5ce0 100644
--- a/builtin/notes.c
+++ b/builtin/notes.c
@@ -715,7 +715,7 @@ static int merge_commit(struct notes_merge_options *o)
die(_("failed to read ref NOTES_MERGE_PARTIAL"));
else if (!(partial = lookup_commit_reference(the_repository, &oid)))
die(_("could not find commit from NOTES_MERGE_PARTIAL."));
- else if (parse_commit(partial))
+ else if (parse_commit(the_repository, partial))
die(_("could not parse commit from NOTES_MERGE_PARTIAL."));
if (partial->parents)
diff --git a/builtin/reflog.c b/builtin/reflog.c
index 3b600966e3..05eb1baa31 100644
--- a/builtin/reflog.c
+++ b/builtin/reflog.c
@@ -235,7 +235,7 @@ static void mark_reachable(struct expire_reflog_policy_cb *cb)
struct commit *commit = pop_commit(&pending);
if (commit->object.flags & REACHABLE)
continue;
- if (parse_commit(commit))
+ if (parse_commit(the_repository, commit))
continue;
commit->object.flags |= REACHABLE;
if (commit->date < expire_limit) {
diff --git a/builtin/show-branch.c b/builtin/show-branch.c
index 03c98efbe5..a3195937d3 100644
--- a/builtin/show-branch.c
+++ b/builtin/show-branch.c
@@ -220,7 +220,7 @@ static void join_revs(struct commit_list **list_p,
parents = parents->next;
if ((this_flag & flags) == flags)
continue;
- parse_commit(p);
+ parse_commit(the_repository, p);
if (mark_seen(p, seen_p) && !still_interesting)
extra--;
p->object.flags |= flags;
@@ -815,7 +815,7 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
if (!commit)
die(_("cannot find commit %s (%s)"),
ref_name[num_rev], oid_to_hex(&revkey));
- parse_commit(commit);
+ parse_commit(the_repository, commit);
mark_seen(commit, &seen);
/* rev#0 uses bit REV_SHIFT, rev#1 uses bit REV_SHIFT+1,
diff --git a/commit.c b/commit.c
index 93a4f70fa4..49c8f76e41 100644
--- a/commit.c
+++ b/commit.c
@@ -67,7 +67,7 @@ struct commit *lookup_commit_reference_by_name(const char *name)
if (get_oid_committish(name, &oid))
return NULL;
commit = lookup_commit_reference(the_repository, &oid);
- if (parse_commit(commit))
+ if (parse_commit(the_repository, commit))
return NULL;
return commit;
}
@@ -417,7 +417,7 @@ int parse_commit_gently_the_repository(struct commit *item, int quiet_on_missing
void parse_commit_or_die(struct commit *item)
{
- if (parse_commit(item))
+ if (parse_commit(the_repository, item))
die("unable to parse commit %s",
item ? oid_to_hex(&item->object.oid) : "(null)");
}
@@ -522,7 +522,7 @@ struct commit *pop_most_recent_commit(struct commit_list **list,
while (parents) {
struct commit *commit = parents->item;
- if (!parse_commit(commit) && !(commit->object.flags & mark)) {
+ if (!parse_commit(the_repository, commit) && !(commit->object.flags & mark)) {
commit->object.flags |= mark;
commit_list_insert_by_date(commit, list);
}
@@ -834,7 +834,7 @@ static struct commit_list *paint_down_to_common(struct commit *one, int n, struc
parents = parents->next;
if ((p->object.flags & flags) == flags)
continue;
- if (parse_commit(p))
+ if (parse_commit(the_repository, p))
return NULL;
p->object.flags |= flags;
prio_queue_put(&queue, p);
@@ -860,10 +860,10 @@ static struct commit_list *merge_bases_many(struct commit *one, int n, struct co
return commit_list_insert(one, &result);
}
- if (parse_commit(one))
+ if (parse_commit(the_repository, one))
return NULL;
for (i = 0; i < n; i++) {
- if (parse_commit(twos[i]))
+ if (parse_commit(the_repository, twos[i]))
return NULL;
}
@@ -922,7 +922,7 @@ static int remove_redundant(struct commit **array, int cnt)
ALLOC_ARRAY(filled_index, cnt - 1);
for (i = 0; i < cnt; i++)
- parse_commit(array[i]);
+ parse_commit(the_repository, array[i]);
for (i = 0; i < cnt; i++) {
struct commit_list *common;
@@ -1046,10 +1046,10 @@ int in_merge_bases_many(struct commit *commit, int nr_reference, struct commit *
struct commit_list *bases;
int ret = 0, i;
- if (parse_commit(commit))
+ if (parse_commit(the_repository, commit))
return ret;
for (i = 0; i < nr_reference; i++)
- if (parse_commit(reference[i]))
+ if (parse_commit(the_repository, reference[i]))
return ret;
bases = paint_down_to_common(commit, nr_reference, reference);
diff --git a/commit.h b/commit.h
index bb2b1e1e28..16203fb18c 100644
--- a/commit.h
+++ b/commit.h
@@ -68,7 +68,8 @@ struct commit *lookup_commit_or_die(const struct object_id *oid, const char *ref
int parse_commit_buffer_the_repository(struct commit *item, const void *buffer, unsigned long size);
#define parse_commit_gently(r, i, q) parse_commit_gently_##r(i, q)
int parse_commit_gently_the_repository(struct commit *item, int quiet_on_missing);
-static inline int parse_commit(struct commit *item)
+#define parse_commit(r, i) parse_commit_##r(i)
+static inline int parse_commit_the_repository(struct commit *item)
{
return parse_commit_gently(the_repository, item, 0);
}
diff --git a/contrib/coccinelle/object_store.cocci b/contrib/coccinelle/object_store.cocci
index 93b1d03971..3ffb34d5b5 100644
--- a/contrib/coccinelle/object_store.cocci
+++ b/contrib/coccinelle/object_store.cocci
@@ -53,3 +53,10 @@ expression F;
+ the_repository,
E, F)
+@@
+expression E;
+@@
+ parse_commit(
++ the_repository,
+ E)
+
diff --git a/fetch-pack.c b/fetch-pack.c
index f38beea6a3..e8b1fc0d1b 100644
--- a/fetch-pack.c
+++ b/fetch-pack.c
@@ -112,7 +112,7 @@ static void rev_list_push(struct commit *commit, int mark)
if (!(commit->object.flags & mark)) {
commit->object.flags |= mark;
- if (parse_commit(commit))
+ if (parse_commit(the_repository, commit))
return;
prio_queue_put(&rev_list, commit);
@@ -176,7 +176,7 @@ static void mark_common(struct commit *commit,
if (!ancestors_only && !(o->flags & POPPED))
non_common_revs--;
if (!o->parsed && !dont_parse)
- if (parse_commit(commit))
+ if (parse_commit(the_repository, commit))
return;
for (parents = commit->parents;
@@ -203,7 +203,7 @@ static const struct object_id *get_rev(void)
return NULL;
commit = prio_queue_get(&rev_list);
- parse_commit(commit);
+ parse_commit(the_repository, commit);
parents = commit->parents;
commit->object.flags |= POPPED;
diff --git a/fsck.c b/fsck.c
index 5144ceb8e2..494b4e3b30 100644
--- a/fsck.c
+++ b/fsck.c
@@ -393,7 +393,7 @@ static int fsck_walk_commit(struct commit *commit, void *data, struct fsck_optio
int result;
const char *name;
- if (parse_commit(commit))
+ if (parse_commit(the_repository, commit))
return -1;
name = get_object_name(options, &commit->object);
diff --git a/merge-recursive.c b/merge-recursive.c
index f6d28f0d8f..719fa58ab1 100644
--- a/merge-recursive.c
+++ b/merge-recursive.c
@@ -233,7 +233,7 @@ static void output_commit_title(struct merge_options *o, struct commit *commit)
strbuf_add_unique_abbrev(&o->obuf, commit->object.oid.hash,
DEFAULT_ABBREV);
strbuf_addch(&o->obuf, ' ');
- if (parse_commit(commit) != 0)
+ if (parse_commit(the_repository, commit) != 0)
strbuf_addstr(&o->obuf, _("(bad commit)\n"));
else {
const char *title;
@@ -2162,7 +2162,7 @@ static struct commit *get_ref(const struct object_id *oid, const char *name)
return make_virtual_commit((struct tree*)object, name);
if (object->type != OBJ_COMMIT)
return NULL;
- if (parse_commit((struct commit *)object))
+ if (parse_commit(the_repository, (struct commit *)object))
return NULL;
return (struct commit *)object;
}
diff --git a/notes-utils.c b/notes-utils.c
index 3ef5340c6e..7b0b2a8f8a 100644
--- a/notes-utils.c
+++ b/notes-utils.c
@@ -22,7 +22,7 @@ void create_notes_commit(struct notes_tree *t, struct commit_list *parents,
if (!read_ref(t->ref, &parent_oid)) {
struct commit *parent = lookup_commit(the_repository,
&parent_oid);
- if (parse_commit(parent))
+ if (parse_commit(the_repository, parent))
die("Failed to find/parse commit %s", t->ref);
commit_list_insert(parent, &parents);
}
diff --git a/remote.c b/remote.c
index ecfa60a975..a4cf885012 100644
--- a/remote.c
+++ b/remote.c
@@ -1993,7 +1993,7 @@ int ref_newer(const struct object_id *new_oid, const struct object_id *old_oid)
return 0;
new = (struct commit *) o;
- if (parse_commit(new) < 0)
+ if (parse_commit(the_repository, new) < 0)
return 0;
used = list = NULL;
diff --git a/revision.c b/revision.c
index 7501ef3160..56c1a9a78f 100644
--- a/revision.c
+++ b/revision.c
@@ -253,7 +253,7 @@ static struct commit *handle_commit(struct rev_info *revs,
*/
if (object->type == OBJ_COMMIT) {
struct commit *commit = (struct commit *)object;
- if (parse_commit(commit) < 0)
+ if (parse_commit(the_repository, commit) < 0)
die("unable to parse commit %s", name);
if (flags & UNINTERESTING) {
mark_parents_uninteresting(commit);
@@ -663,7 +663,7 @@ static void try_to_simplify_commit(struct rev_info *revs, struct commit *commit)
ts->treesame[0] = 1;
}
}
- if (parse_commit(p) < 0)
+ if (parse_commit(the_repository, p) < 0)
die("cannot simplify commit %s (because of %s)",
oid_to_hex(&commit->object.oid),
oid_to_hex(&p->object.oid));
@@ -696,7 +696,7 @@ static void try_to_simplify_commit(struct rev_info *revs, struct commit *commit)
* IOW, we pretend this parent is a
* "root" commit.
*/
- if (parse_commit(p) < 0)
+ if (parse_commit(the_repository, p) < 0)
die("cannot simplify commit %s (invalid %s)",
oid_to_hex(&commit->object.oid),
oid_to_hex(&p->object.oid));
diff --git a/sequencer.c b/sequencer.c
index 4d259d9ae4..e94ed30965 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -507,7 +507,7 @@ static int is_index_unchanged(void)
* the commit is invalid, parse_commit() will complain. So
* there is nothing for us to say here. Just return failure.
*/
- if (parse_commit(head_commit))
+ if (parse_commit(the_repository, head_commit))
return -1;
if (!active_cache_tree)
@@ -700,12 +700,12 @@ static int is_original_commit_empty(struct commit *commit)
{
const struct object_id *ptree_oid;
- if (parse_commit(commit))
+ if (parse_commit(the_repository, commit))
return error(_("could not parse commit %s"),
oid_to_hex(&commit->object.oid));
if (commit->parents) {
struct commit *parent = commit->parents->item;
- if (parse_commit(parent))
+ if (parse_commit(the_repository, parent))
return error(_("could not parse parent commit %s"),
oid_to_hex(&parent->object.oid));
ptree_oid = &parent->tree->object.oid;
@@ -1019,7 +1019,7 @@ static int do_pick_commit(enum todo_command command, struct commit *commit,
msg_file = NULL;
goto fast_forward_edit;
}
- if (parent && parse_commit(parent) < 0)
+ if (parent && parse_commit(the_repository, parent) < 0)
/* TRANSLATORS: The first %s will be a "todo" command like
"revert" or "pick", the second %s a SHA1. */
return error(_("%s: cannot parse parent commit %s"),
@@ -2774,7 +2774,7 @@ int skip_unnecessary_picks(void)
continue;
if (item->command != TODO_PICK)
break;
- if (parse_commit(item->commit)) {
+ if (parse_commit(the_repository, item->commit)) {
todo_list_release(&todo_list);
return error(_("could not parse commit '%s'"),
oid_to_hex(&item->commit->object.oid));
@@ -2903,7 +2903,7 @@ int rearrange_squash(void)
item->commit->util = item;
- parse_commit(item->commit);
+ parse_commit(the_repository, item->commit);
commit_buffer = get_commit_buffer(item->commit, NULL);
find_commit_subject(commit_buffer, &subject);
format_subject(&buf, subject, " ");
diff --git a/sha1_name.c b/sha1_name.c
index 45b7d6be91..43fe20b927 100644
--- a/sha1_name.c
+++ b/sha1_name.c
@@ -850,7 +850,7 @@ static int get_parent(const char *name, int len,
if (ret)
return ret;
commit = lookup_commit_reference(the_repository, &oid);
- if (parse_commit(commit))
+ if (parse_commit(the_repository, commit))
return -1;
if (!idx) {
oidcpy(result, &commit->object.oid);
@@ -882,7 +882,7 @@ static int get_nth_ancestor(const char *name, int len,
return -1;
while (generation--) {
- if (parse_commit(commit) || !commit->parents)
+ if (parse_commit(the_repository, commit) || !commit->parents)
return -1;
commit = commit->parents->item;
}
diff --git a/shallow.c b/shallow.c
index 004f99d4e2..254c1a397a 100644
--- a/shallow.c
+++ b/shallow.c
@@ -194,7 +194,7 @@ struct commit_list *get_shallow_commits_by_rev_list(int ac, const char **av,
struct commit *c = p->item;
struct commit_list *parent;
- if (parse_commit(c))
+ if (parse_commit(the_repository, c))
die("unable to parse commit %s",
oid_to_hex(&c->object.oid));
@@ -515,7 +515,7 @@ static void paint_down(struct paint_info *info, const struct object_id *oid,
if (c->object.flags & BOTTOM)
continue;
- if (parse_commit(c))
+ if (parse_commit(the_repository, c))
die("unable to parse commit %s",
oid_to_hex(&c->object.oid));
diff --git a/tree.c b/tree.c
index 07cea88450..1635a01794 100644
--- a/tree.c
+++ b/tree.c
@@ -106,7 +106,7 @@ static int read_tree_1(struct tree *tree, struct strbuf *base,
oid_to_hex(entry.oid),
base->buf, entry.path);
- if (parse_commit(commit))
+ if (parse_commit(the_repository, commit))
die("Invalid commit %s in submodule path %s%s",
oid_to_hex(entry.oid),
base->buf, entry.path);
diff --git a/walker.c b/walker.c
index b96e00a8f1..6efaf087df 100644
--- a/walker.c
+++ b/walker.c
@@ -76,7 +76,7 @@ static struct commit_list *complete = NULL;
static int process_commit(struct walker *walker, struct commit *commit)
{
- if (parse_commit(commit))
+ if (parse_commit(the_repository, commit))
return -1;
while (complete && complete->item->date >= commit->date) {
--
2.15.1.433.g936d1b9894.dirty
next prev parent reply other threads:[~2018-02-06 0:25 UTC|newest]
Thread overview: 239+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-05 23:51 [RFC PATCH 000/194] Moving global state into the repository object Stefan Beller
2018-02-05 23:51 ` [PATCH 001/194] repository: introduce object store field Stefan Beller
2018-02-05 23:51 ` [PATCH 002/194] object-store: move alt_odb_list and alt_odb_tail to object store Stefan Beller
2018-02-05 23:51 ` [PATCH 003/194] object-store: move packed_git and packed_git_mru " Stefan Beller
2018-02-09 22:09 ` Junio C Hamano
2018-02-12 19:00 ` Stefan Beller
2018-02-12 21:04 ` Junio C Hamano
2018-02-12 21:40 ` René Scharfe
2018-02-12 21:48 ` Junio C Hamano
2018-02-13 18:52 ` René Scharfe
2018-02-13 19:45 ` Stefan Beller
2018-02-14 1:26 ` Junio C Hamano
2018-02-12 21:40 ` René Scharfe
2018-02-05 23:51 ` [PATCH 004/194] pack: move prepare_packed_git_run_once " Stefan Beller
2018-02-05 23:51 ` [PATCH 005/194] pack: move approximate object count " Stefan Beller
2018-02-05 23:52 ` [PATCH 006/194] sha1_file: add repository argument to alt_odb_usable Stefan Beller
2018-02-05 23:52 ` [PATCH 007/194] sha1_file: add repository argument to link_alt_odb_entry Stefan Beller
2018-02-05 23:52 ` [PATCH 008/194] sha1_file: add repository argument to read_info_alternates Stefan Beller
2018-02-05 23:52 ` [PATCH 009/194] sha1_file: add repository argument to link_alt_odb_entries Stefan Beller
2018-02-05 23:52 ` [PATCH 010/194] sha1_file: add repository argument to stat_sha1_file Stefan Beller
2018-02-05 23:52 ` [PATCH 011/194] sha1_file: add repository argument to open_sha1_file Stefan Beller
2018-02-05 23:52 ` [PATCH 012/194] sha1_file: add repository argument to map_sha1_file_1 Stefan Beller
2018-02-05 23:52 ` [PATCH 013/194] sha1_file: add repository argument to sha1_loose_object_info Stefan Beller
2018-02-05 23:52 ` [PATCH 014/194] object-store: add repository argument to prepare_alt_odb Stefan Beller
2018-02-05 23:52 ` [PATCH 015/194] object-store: add repository argument to foreach_alt_odb Stefan Beller
2018-02-05 23:52 ` [PATCH 016/194] pack: add repository argument to install_packed_git Stefan Beller
2018-02-05 23:52 ` [PATCH 017/194] pack: add repository argument to prepare_packed_git_one Stefan Beller
2018-02-05 23:52 ` [PATCH 018/194] pack: add repository argument to rearrange_packed_git Stefan Beller
2018-02-05 23:52 ` [PATCH 019/194] pack: add repository argument to prepare_packed_git_mru Stefan Beller
2018-02-05 23:52 ` [PATCH 020/194] pack: add repository argument to prepare_packed_git Stefan Beller
2018-02-05 23:52 ` [PATCH 021/194] pack: add repository argument to reprepare_packed_git Stefan Beller
2018-02-05 23:54 ` Stefan Beller
2018-02-05 23:54 ` [PATCH 022/194] pack: add repository argument to sha1_file_name Stefan Beller
2018-02-05 23:54 ` [PATCH 023/194] pack: add repository argument to map_sha1_file Stefan Beller
2018-02-05 23:54 ` [PATCH 024/194] sha1_file: allow alt_odb_usable to handle arbitrary repositories Stefan Beller
2018-02-05 23:54 ` [PATCH 025/194] object-store: allow prepare_alt_odb " Stefan Beller
2018-02-06 1:19 ` brian m. carlson
2018-02-06 13:44 ` Derrick Stolee
2018-02-06 17:48 ` Stefan Beller
2018-02-08 1:47 ` brian m. carlson
2018-02-07 22:06 ` Jonathan Tan
2018-02-05 23:54 ` [PATCH 026/194] object-store: allow foreach_alt_odb " Stefan Beller
2018-02-05 23:54 ` [PATCH 027/194] pack: allow install_packed_git " Stefan Beller
2018-02-05 23:54 ` [PATCH 028/194] pack: allow rearrange_packed_git " Stefan Beller
2018-02-05 23:54 ` [PATCH 029/194] pack: allow prepare_packed_git_mru " Stefan Beller
2018-02-05 23:54 ` [PATCH 030/194] pack: allow prepare_packed_git_one " Stefan Beller
2018-02-05 23:54 ` [PATCH 031/194] pack: allow prepare_packed_git " Stefan Beller
2018-02-05 23:54 ` [PATCH 032/194] pack: allow reprepare_packed_git " Stefan Beller
2018-02-05 23:54 ` [PATCH 033/194] pack: allow sha1_file_name " Stefan Beller
2018-02-05 23:54 ` [PATCH 034/194] pack: allow stat_sha1_file " Stefan Beller
2018-02-05 23:54 ` [PATCH 035/194] pack: allow open_sha1_file " Stefan Beller
2018-02-05 23:54 ` [PATCH 036/194] pack: allow map_sha1_file_1 " Stefan Beller
2018-02-05 23:54 ` [PATCH 037/194] pack: allow map_sha1_file " Stefan Beller
2018-02-05 23:54 ` [PATCH 038/194] pack: allow sha1_loose_object_info " Stefan Beller
2018-02-07 22:33 ` Jonathan Tan
2018-02-07 23:31 ` Stefan Beller
2018-02-05 23:55 ` [PATCH 039/194] replace_object.c: rename to use dash in file name Stefan Beller
2018-02-05 23:55 ` [PATCH 040/194] replace-object: move replace_object to object store Stefan Beller
2018-02-05 23:55 ` [PATCH 041/194] sha1_file: add repository argument to sha1_object_info_extended Stefan Beller
2018-02-05 23:55 ` [PATCH 042/194] object-store: move alternates API to new alternates.h Stefan Beller
2018-02-06 1:44 ` brian m. carlson
2018-02-06 17:53 ` Stefan Beller
2018-02-09 23:12 ` Junio C Hamano
2018-02-06 4:52 ` Eric Sunshine
2018-02-06 17:52 ` Stefan Beller
2018-02-05 23:55 ` [PATCH 043/194] object-store: move loose object functions to new loose-object.h Stefan Beller
2018-02-05 23:55 ` [PATCH 044/194] pack: move struct pack_window and pack_entry to packfile.h Stefan Beller
2018-02-05 23:55 ` [PATCH 045/194] object-store: move object access functions to object-store.h Stefan Beller
2018-02-05 23:55 ` [PATCH 046/194] object-store: move replace_objects back to object-store Stefan Beller
2018-02-09 23:15 ` Junio C Hamano
2018-02-12 19:08 ` Stefan Beller
2018-02-05 23:55 ` [PATCH 047/194] object-store: move lookup_replace_object to replace-object.h Stefan Beller
2018-02-05 23:55 ` [PATCH 048/194] replace-object: add repository argument to do_lookup_replace_object Stefan Beller
2018-02-05 23:55 ` [PATCH 049/194] replace-object: move replace objects prepared flag to object store Stefan Beller
2018-02-05 23:55 ` [PATCH 050/194] replace-object: check_replace_refs is safe in multi repo environment Stefan Beller
2018-02-06 4:30 ` Eric Sunshine
2018-02-05 23:55 ` [PATCH 051/194] refs: add repository argument to for_each_replace_ref Stefan Beller
2018-02-05 23:55 ` [PATCH 052/194] refs: add repository argument to get_main_ref_store Stefan Beller
2018-02-05 23:55 ` [PATCH 053/194] replace-object: add repository argument to register_replace_object Stefan Beller
2018-02-05 23:55 ` [PATCH 054/194] replace-object: add repository argument to register_replace_ref Stefan Beller
2018-02-05 23:55 ` [PATCH 055/194] replace-object: add repository argument to replace_object_pos Stefan Beller
2018-02-05 23:55 ` [PATCH 056/194] replace-object: allow replace_object_pos to handle arbitrary repositories Stefan Beller
2018-02-05 23:55 ` [PATCH 057/194] replace-object: allow register_replace_object " Stefan Beller
2018-02-05 23:55 ` [PATCH 058/194] replace-object: add repository argument to prepare_replace_object Stefan Beller
2018-02-05 23:55 ` [PATCH 059/194] refs: store the main ref store inside the repository struct Stefan Beller
2018-02-06 4:27 ` Eric Sunshine
2018-02-06 18:01 ` Stefan Beller
2018-02-05 23:55 ` [PATCH 060/194] refs: allow for_each_replace_ref to handle arbitrary repositories Stefan Beller
2018-02-05 23:55 ` [PATCH 061/194] replace-object: allow prepare_replace_object " Stefan Beller
2018-02-05 23:55 ` [PATCH 062/194] replace_object: allow do_lookup_replace_object " Stefan Beller
2018-02-05 23:55 ` [PATCH 063/194] replace-object: add repository argument to lookup_replace_object Stefan Beller
2018-02-05 23:55 ` [PATCH 064/194] repository: allow lookup_replace_object to handle arbitrary repositories Stefan Beller
2018-02-05 23:55 ` [PATCH 065/194] object-store: add repository argument to sha1_object_info Stefan Beller
2018-02-06 1:55 ` brian m. carlson
2018-02-05 23:55 ` [PATCH 066/194] pack: add repository argument to retry_bad_packed_offset Stefan Beller
2018-02-05 23:55 ` [PATCH 067/194] pack: add repository argument to packed_to_object_type Stefan Beller
2018-02-05 23:55 ` [PATCH 068/194] pack: add repository argument to packed_object_info Stefan Beller
2018-02-05 23:55 ` [PATCH 069/194] pack: add repository argument to find_pack_entry Stefan Beller
2018-02-05 23:55 ` [PATCH 070/194] packfile: add repository argument to read_object Stefan Beller
2018-02-05 23:55 ` [PATCH 071/194] packfile: add repository argument to unpack_entry Stefan Beller
2018-02-05 23:55 ` [PATCH 072/194] packfile: add repository argument to cache_or_unpack_entry Stefan Beller
2018-02-05 23:55 ` [PATCH 073/194] pack: allow find_pack_entry to handle arbitrary repositories Stefan Beller
2018-02-05 23:55 ` [PATCH 074/194] object-store: allow sha1_object_info " Stefan Beller
2018-02-05 23:55 ` [PATCH 075/194] fetch, push: do not use submodule as alternate in has_commits check Stefan Beller
2018-02-06 4:20 ` Eric Sunshine
2018-02-06 20:33 ` Stefan Beller
2018-02-05 23:55 ` [PATCH 076/194] push: add test showing bad interaction of replace refs and submodules Stefan Beller
2018-02-06 2:20 ` brian m. carlson
2018-02-06 22:43 ` Stefan Beller
2018-02-05 23:55 ` [PATCH 077/194] replace_object: allow register_replace_ref to handle arbitrary repositories Stefan Beller
2018-02-05 23:55 ` [PATCH 078/194] cache.h: migrate the definition of object_id to object.h Stefan Beller
2018-02-05 23:55 ` [PATCH 079/194] repository: introduce object parser field Stefan Beller
2018-02-05 23:55 ` [PATCH 080/194] object: add repository argument to parse_object Stefan Beller
2018-02-05 23:55 ` [PATCH 081/194] object: add repository argument to create_object Stefan Beller
2018-02-05 23:55 ` [PATCH 082/194] object: add repository argument to lookup_object Stefan Beller
2018-02-05 23:55 ` [PATCH 083/194] object: add repository argument to grow_object_hash Stefan Beller
2018-02-05 23:55 ` [PATCH 084/194] blob: add repository argument to lookup_blob Stefan Beller
2018-02-05 23:55 ` [PATCH 085/194] tree: add repository argument to lookup_tree Stefan Beller
2018-02-05 23:55 ` [PATCH 086/194] tag: add repository argument to lookup_tag Stefan Beller
2018-02-05 23:55 ` [PATCH 087/194] tag: add repository argument to parse_tag_buffer Stefan Beller
2018-02-05 23:55 ` [PATCH 088/194] tag: add repository argument to deref_tag Stefan Beller
2018-02-05 23:55 ` [PATCH 089/194] object: add repository argument to lookup_commit_reference_gently Stefan Beller
2018-02-05 23:55 ` [PATCH 090/194] object: add repository argument to lookup_commit_reference Stefan Beller
2018-02-05 23:55 ` [PATCH 091/194] object: add repository argument to lookup_commit Stefan Beller
2018-02-05 23:55 ` [PATCH 092/194] object: move grafts to object parser Stefan Beller
2018-02-06 4:07 ` Eric Sunshine
2018-02-06 18:04 ` Stefan Beller
2018-02-05 23:55 ` [PATCH 093/194] object: add repository argument to commit_graft_pos Stefan Beller
2018-02-05 23:55 ` [PATCH 094/194] commit: add repository argument to parse_commit_buffer Stefan Beller
2018-02-05 23:55 ` [PATCH 095/194] object: add repository argument to register_commit_graft Stefan Beller
2018-02-05 23:55 ` [PATCH 096/194] object: add repository argument to read_graft_file Stefan Beller
2018-02-05 23:55 ` [PATCH 097/194] object: add repository argument to prepare_commit_graft Stefan Beller
2018-02-05 23:55 ` [PATCH 098/194] object: add repository argument to lookup_commit_graft Stefan Beller
2018-02-06 0:16 ` [PATCH 099/194] object: allow grow_object_hash to handle arbitrary repositories Stefan Beller
2018-02-06 0:16 ` [PATCH 100/194] object: allow create_object " Stefan Beller
2018-02-06 0:16 ` [PATCH 101/194] object: allow lookup_object " Stefan Beller
2018-02-06 0:16 ` [PATCH 102/194] object: add repository argument to lookup_unknown_object Stefan Beller
2018-02-06 0:16 ` [PATCH 103/194] object: allow lookup_unknown_object to handle arbitrary repositories Stefan Beller
2018-02-06 0:16 ` [PATCH 104/194] object: add repository argument to parse_object_buffer Stefan Beller
2018-02-06 0:16 ` [PATCH 105/194] repository: keep track of all open repositories Stefan Beller
2018-02-06 0:16 ` [PATCH 106/194] Rename sha1_object_info.cocci to object_store.cocci Stefan Beller
2018-02-06 0:16 ` [PATCH 107/194] alternates: add repository argument to add_to_alternates_file Stefan Beller
2018-02-06 0:16 ` [PATCH 108/194] alternates: add repository argument to add_to_alternates_memory Stefan Beller
2018-02-06 0:16 ` [PATCH 109/194] object-store: move check_sha1_signature to object-store.h Stefan Beller
2018-02-06 0:16 ` [PATCH 110/194] object-store: add repository argument to check_sha1_signature Stefan Beller
2018-02-06 0:16 ` [PATCH 111/194] object-store: add repository argument to read_object Stefan Beller
2018-02-06 0:16 ` [PATCH 112/194] object-store: add repository argument to read_sha1_file_extended Stefan Beller
2018-02-06 0:16 ` [PATCH 113/194] object-store: add repository argument to read_sha1_file Stefan Beller
2018-02-06 0:16 ` [PATCH 114/194] object: move read_object_with_reference to object.h Stefan Beller
2018-02-06 0:16 ` [PATCH 115/194] packfile: add repository argument to has_packed_and_bad Stefan Beller
2018-02-06 0:16 ` [PATCH 116/194] packfile: allow has_packed_and_bad to handle arbitrary repositories Stefan Beller
2018-02-06 0:16 ` [PATCH 117/194] streaming: add repository argument to open_istream_fn Stefan Beller
2018-02-06 0:16 ` [PATCH 119/194] streaming: add repository argument to istream_source Stefan Beller
2018-02-06 0:16 ` [PATCH 120/194] streaming: allow istream_source to handle arbitrary repositories Stefan Beller
2018-02-06 0:16 ` [PATCH 121/194] sha1_file: allow read_object " Stefan Beller
2018-02-06 0:16 ` [PATCH 122/194] object-store.h: allow read_sha1_file{_extended} " Stefan Beller
2018-02-06 0:16 ` [PATCH 123/194] streaming: allow open_istream_incore " Stefan Beller
2018-02-06 0:16 ` [PATCH 124/194] streaming: allow open_istream_pack_non_delta " Stefan Beller
2018-02-06 0:16 ` [PATCH 125/194] streaming: allow open_istream_loose " Stefan Beller
2018-02-06 0:16 ` [PATCH 126/194] streaming: allow open_istream " Stefan Beller
2018-02-06 0:16 ` [PATCH 127/194] alternates: convert add_to_alternates_memory to handle arbitrary repos Stefan Beller
2018-02-06 0:16 ` [PATCH 128/194] object: add repository argument to object_as_type Stefan Beller
2018-02-06 0:16 ` [PATCH 129/194] alloc: add repository argument to alloc_blob_node Stefan Beller
2018-02-06 0:16 ` [PATCH 130/194] alloc: add repository argument to alloc_tree_node Stefan Beller
2018-02-06 0:16 ` [PATCH 131/194] alloc: add repository argument to alloc_commit_node Stefan Beller
2018-02-06 0:16 ` [PATCH 132/194] alloc: add repository argument to alloc_tag_node Stefan Beller
2018-02-06 0:16 ` [PATCH 133/194] alloc: add repository argument to alloc_object_node Stefan Beller
2018-02-06 0:16 ` [PATCH 134/194] alloc: add repository argument to alloc_report Stefan Beller
2018-02-06 0:16 ` [PATCH 135/194] alloc: add repository argument to alloc_commit_index Stefan Beller
2018-02-06 0:16 ` [PATCH 136/194] alloc: allow arbitrary repositories for alloc functions Stefan Beller
2018-02-06 3:35 ` Eric Sunshine
2018-02-06 0:16 ` [PATCH 137/194] object: allow object_as_type to handle arbitrary repositories Stefan Beller
2018-02-06 0:16 ` [PATCH 138/194] commit: allow lookup_commit " Stefan Beller
2018-02-06 0:16 ` [PATCH 139/194] sha1_file: allow add_to_alternates_file " Stefan Beller
2018-02-06 0:16 ` [PATCH 140/194] commit: convert commit_graft_pos() " Stefan Beller
2018-02-06 0:16 ` [PATCH 141/194] commit: convert register_commit_graft " Stefan Beller
2018-02-06 0:16 ` [PATCH 142/194] commit: convert read_graft_file " Stefan Beller
2018-02-06 0:16 ` [PATCH 143/194] object: add repository argument to parse_commit_gently Stefan Beller
2018-02-06 0:16 ` Stefan Beller [this message]
2018-02-06 0:17 ` [PATCH 145/194] commit: add repository argument to set_commit_buffer Stefan Beller
2018-02-06 0:17 ` [PATCH 146/194] commit: add repository argument to get_cached_commit_buffer Stefan Beller
2018-02-06 0:17 ` [PATCH 147/194] commit: add repository argument to unuse_commit_buffer Stefan Beller
2018-02-06 0:17 ` [PATCH 148/194] commit: add repository argument to free_commit_buffer Stefan Beller
2018-02-06 0:17 ` [PATCH 149/194] commit: allow commit buffer functions to handle arbitrary repositories Stefan Beller
2018-02-06 0:17 ` [PATCH 150/194] tree: allow lookup_tree " Stefan Beller
2018-02-06 0:17 ` [PATCH 151/194] cache: convert get_graft_file " Stefan Beller
2018-02-06 0:17 ` [PATCH 152/194] shallow: add repository argument to set_alternate_shallow_file Stefan Beller
2018-02-06 0:17 ` [PATCH 153/194] shallow: add repository argument to register_shallow Stefan Beller
2018-02-06 0:17 ` [PATCH 154/194] shallow: add repository argument to check_shallow_file_for_update Stefan Beller
2018-02-06 0:17 ` [PATCH 155/194] shallow: add repository argument to is_repository_shallow Stefan Beller
2018-02-06 0:17 ` [PATCH 156/194] migrate cached path to use the_repository Stefan Beller
2018-02-06 0:17 ` [PATCH 157/194] shallow: migrate shallow information into the object parser Stefan Beller
2018-02-06 0:17 ` [PATCH 158/194] commit: allow prepare_commit_graft to handle arbitrary repositories Stefan Beller
2018-02-06 0:17 ` [PATCH 159/194] commit: allow lookup_commit_graft " Stefan Beller
2018-02-06 0:17 ` [PATCH 160/194] commit: allow arbitrary repository argument for parse_commit_buffer Stefan Beller
2018-02-06 0:17 ` [PATCH 161/194] commit: allow parse_commit_gently to handle arbitrary repository Stefan Beller
2018-02-06 0:17 ` [PATCH 162/194] commit: add repository argument to get_merge_bases_many_0 Stefan Beller
2018-02-06 0:17 ` [PATCH 163/194] commit: add repository argument to merge_bases_many Stefan Beller
2018-02-06 0:17 ` [PATCH 164/194] commit: add repository argument to paint_down_to_common Stefan Beller
2018-02-06 0:17 ` [PATCH 165/194] commit: allow parse_commit to handle arbitrary repositories Stefan Beller
2018-02-06 0:17 ` [PATCH 166/194] commit: allow paint_down_to_common " Stefan Beller
2018-02-06 0:17 ` [PATCH 167/194] commit: allow merge_bases_many " Stefan Beller
2018-02-06 0:17 ` [PATCH 168/194] commit: add repository argument to remove_redundant Stefan Beller
2018-02-06 0:17 ` [PATCH 169/194] commit: allow remove_redundant to handle arbitrary repositories Stefan Beller
2018-02-06 0:17 ` [PATCH 170/194] commit: allow get_merge_bases_many_0 " Stefan Beller
2018-02-06 0:17 ` [PATCH 171/194] commit: add repository argument to get_merge_bases Stefan Beller
2018-02-06 0:17 ` [PATCH 172/194] commit: allow get_merge_bases to handle arbitrary repositories Stefan Beller
2018-02-06 0:17 ` [PATCH 173/194] blob: allow lookup_blob " Stefan Beller
2018-02-06 0:17 ` [PATCH 174/194] tag: allow lookup_tag " Stefan Beller
2018-02-06 0:17 ` [PATCH 175/194] tag: allow parse_tag_buffer " Stefan Beller
2018-02-06 0:17 ` [PATCH 176/194] object: allow parse_object_buffer " Stefan Beller
2018-02-06 0:17 ` [PATCH 177/194] objects: allow check_sha1_signature " Stefan Beller
2018-02-06 0:17 ` [PATCH 178/194] object: allow parse_object " Stefan Beller
2018-02-06 0:17 ` [PATCH 179/194] tag: allow deref_tag " Stefan Beller
2018-02-06 0:17 ` [PATCH 180/194] commit: allow lookup_commit_reference_gently " Stefan Beller
2018-02-06 0:17 ` [PATCH 181/194] commit: allow lookup_commit_reference " Stefan Beller
2018-02-06 0:17 ` [PATCH 182/194] commit: add repository argument to get_commit_buffer Stefan Beller
2018-02-06 0:17 ` [PATCH 183/194] commit: add repository argument to logmsg_reencode Stefan Beller
2018-02-06 0:17 ` [PATCH 184/194] pretty: add repository argument to format_commit_message Stefan Beller
2018-02-06 0:17 ` [PATCH 185/194] commit: allow get_commit_buffer to handle arbitrary repositories Stefan Beller
2018-02-06 0:17 ` [PATCH 186/194] pretty: allow logmsg_reencode " Stefan Beller
2018-02-06 0:17 ` [PATCH 187/194] commit: add repository argument to in_merge_bases_many Stefan Beller
2018-02-06 0:17 ` [PATCH 188/194] commit: add repository argument to in_merge_bases Stefan Beller
2018-02-06 0:17 ` [PATCH 189/194] commit: allow in_merge_bases_many to handle arbitrary repositories Stefan Beller
2018-02-06 0:17 ` [PATCH 190/194] commit: allow in_merge_bases " Stefan Beller
2018-02-06 0:17 ` [PATCH 191/194] pretty: allow format_commit_message " Stefan Beller
2018-02-06 0:17 ` [PATCH 192/194] submodule: add repository argument to print_submodule_summary Stefan Beller
2018-02-06 0:17 ` [PATCH 193/194] submodule: Reorder open_submodule function Stefan Beller
2018-02-06 0:17 ` [PATCH 194/194] submodule: use submodule repos for object lookup Stefan Beller
2018-02-06 0:54 ` [RFC PATCH 000/194] Moving global state into the repository object Stefan Beller
2018-02-06 3:32 ` brian m. carlson
2018-02-06 20:25 ` Stefan Beller
2018-02-06 23:46 ` Stefan Beller
2018-02-07 9:54 ` Eric Sunshine
2018-02-07 11:48 ` Duy Nguyen
2018-02-07 18:06 ` Stefan Beller
2018-02-10 10:36 ` Duy Nguyen
2018-02-07 16:39 ` Jeff Hostetler
2018-02-08 15:42 ` Elijah Newren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180206001749.218943-46-sbeller@google.com \
--to=sbeller@google.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).