summaryrefslogtreecommitdiff
path: root/pkg/git/patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-08-03 22:18:50 -0700
committerMichael Forney <mforney@mforney.org>2020-08-04 02:29:08 -0700
commitc50ca42df571204ba4bd9db45abd7a4ccf82cd8e (patch)
treeb174b69efc859d5d5017df8169921e93e5097cd1 /pkg/git/patch
parentfa12d8d1ac7632446ef88a5557d2199ed85f5b65 (diff)
git: Update to 2.28.0
Diffstat (limited to 'pkg/git/patch')
-rw-r--r--pkg/git/patch/0001-revision-use-repository-from-rev_info-when-parsing-c.patch32
1 files changed, 16 insertions, 16 deletions
diff --git a/pkg/git/patch/0001-revision-use-repository-from-rev_info-when-parsing-c.patch b/pkg/git/patch/0001-revision-use-repository-from-rev_info-when-parsing-c.patch
index c27f15a0..0b7b448f 100644
--- a/pkg/git/patch/0001-revision-use-repository-from-rev_info-when-parsing-c.patch
+++ b/pkg/git/patch/0001-revision-use-repository-from-rev_info-when-parsing-c.patch
@@ -1,4 +1,4 @@
-From 5436472ffdcd5d33b6756a295a10add09db83dd6 Mon Sep 17 00:00:00 2001
+From 212f02aeb196de20d91519e31af40b4170124143 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Sun, 21 Jun 2020 14:29:38 -0700
Subject: [PATCH] revision: use repository from rev_info when parsing commits
@@ -13,10 +13,10 @@ Signed-off-by: Michael Forney <mforney@mforney.org>
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/commit.h b/commit.h
-index 1b2dea5d85..a2e8ca99a2 100644
+index e901538909..a740e0461c 100644
--- a/commit.h
+++ b/commit.h
-@@ -97,7 +97,6 @@ static inline int parse_commit_no_graph(struct commit *commit)
+@@ -95,7 +95,6 @@ static inline int parse_commit_no_graph(struct commit *commit)
#ifndef NO_THE_REPOSITORY_COMPATIBILITY_MACROS
#define parse_commit_internal(item, quiet, use) repo_parse_commit_internal(the_repository, item, quiet, use)
@@ -25,10 +25,10 @@ index 1b2dea5d85..a2e8ca99a2 100644
#endif
diff --git a/revision.c b/revision.c
-index 60cca8c0b9..3ac0a50ed3 100644
+index 6aa7f4f567..74f66f79a0 100644
--- a/revision.c
+++ b/revision.c
-@@ -437,7 +437,7 @@ static struct commit *handle_commit(struct rev_info *revs,
+@@ -439,7 +439,7 @@ static struct commit *handle_commit(struct rev_info *revs,
if (object->type == OBJ_COMMIT) {
struct commit *commit = (struct commit *)object;
@@ -37,7 +37,7 @@ index 60cca8c0b9..3ac0a50ed3 100644
die("unable to parse commit %s", name);
if (flags & UNINTERESTING) {
mark_parents_uninteresting(commit);
-@@ -987,7 +987,7 @@ static void try_to_simplify_commit(struct rev_info *revs, struct commit *commit)
+@@ -992,7 +992,7 @@ static void try_to_simplify_commit(struct rev_info *revs, struct commit *commit)
ts->treesame[0] = 1;
}
}
@@ -46,7 +46,7 @@ index 60cca8c0b9..3ac0a50ed3 100644
die("cannot simplify commit %s (because of %s)",
oid_to_hex(&commit->object.oid),
oid_to_hex(&p->object.oid));
-@@ -1032,7 +1032,7 @@ static void try_to_simplify_commit(struct rev_info *revs, struct commit *commit)
+@@ -1037,7 +1037,7 @@ static void try_to_simplify_commit(struct rev_info *revs, struct commit *commit)
* IOW, we pretend this parent is a
* "root" commit.
*/
@@ -55,7 +55,7 @@ index 60cca8c0b9..3ac0a50ed3 100644
die("cannot simplify commit %s (invalid %s)",
oid_to_hex(&commit->object.oid),
oid_to_hex(&p->object.oid));
-@@ -1100,7 +1100,7 @@ static int process_parents(struct rev_info *revs, struct commit *commit,
+@@ -1105,7 +1105,7 @@ static int process_parents(struct rev_info *revs, struct commit *commit,
parent = parent->next;
if (p)
p->object.flags |= UNINTERESTING;
@@ -64,7 +64,7 @@ index 60cca8c0b9..3ac0a50ed3 100644
continue;
if (p->parents)
mark_parents_uninteresting(p);
-@@ -1131,7 +1131,7 @@ static int process_parents(struct rev_info *revs, struct commit *commit,
+@@ -1136,7 +1136,7 @@ static int process_parents(struct rev_info *revs, struct commit *commit,
struct commit *p = parent->item;
int gently = revs->ignore_missing_links ||
revs->exclude_promisor_objects;
@@ -73,7 +73,7 @@ index 60cca8c0b9..3ac0a50ed3 100644
if (revs->exclude_promisor_objects &&
is_promisor_object(&p->object.oid)) {
if (revs->first_parent_only)
-@@ -3289,7 +3289,7 @@ static void explore_walk_step(struct rev_info *revs)
+@@ -3296,7 +3296,7 @@ static void explore_walk_step(struct rev_info *revs)
if (!c)
return;
@@ -82,7 +82,7 @@ index 60cca8c0b9..3ac0a50ed3 100644
return;
if (revs->sort_order == REV_SORT_BY_AUTHOR_DATE)
-@@ -3327,7 +3327,7 @@ static void indegree_walk_step(struct rev_info *revs)
+@@ -3334,7 +3334,7 @@ static void indegree_walk_step(struct rev_info *revs)
if (!c)
return;
@@ -90,17 +90,17 @@ index 60cca8c0b9..3ac0a50ed3 100644
+ if (repo_parse_commit_gently(revs->repo, c, 1) < 0)
return;
- explore_to_depth(revs, c->generation);
-@@ -3408,7 +3408,7 @@ static void init_topo_walk(struct rev_info *revs)
- for (list = revs->commits; list; list = list->next) {
+ explore_to_depth(revs, commit_graph_generation(c));
+@@ -3416,7 +3416,7 @@ static void init_topo_walk(struct rev_info *revs)
struct commit *c = list->item;
+ uint32_t generation;
- if (parse_commit_gently(c, 1))
+ if (repo_parse_commit_gently(revs->repo, c, 1))
continue;
test_flag_and_insert(&info->explore_queue, c, TOPO_WALK_EXPLORED);
-@@ -3470,7 +3470,7 @@ static void expand_topo_walk(struct rev_info *revs, struct commit *commit)
+@@ -3480,7 +3480,7 @@ static void expand_topo_walk(struct rev_info *revs, struct commit *commit)
if (parent->object.flags & UNINTERESTING)
continue;
@@ -108,7 +108,7 @@ index 60cca8c0b9..3ac0a50ed3 100644
+ if (repo_parse_commit_gently(revs->repo, parent, 1) < 0)
continue;
- if (parent->generation < info->min_generation) {
+ generation = commit_graph_generation(parent);
--
2.27.0