aboutsummaryrefslogtreecommitdiffstats
path: root/commit.c
diff options
context:
space:
mode:
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/commit.c b/commit.c
index b88ced5b02..c0a83d2644 100644
--- a/commit.c
+++ b/commit.c
@@ -443,7 +443,7 @@ int parse_commit_buffer(struct repository *r, struct commit *item, const void *b
return 0;
}
-int parse_commit_gently(struct commit *item, int quiet_on_missing)
+int parse_commit_internal(struct commit *item, int quiet_on_missing, int use_commit_graph)
{
enum object_type type;
void *buffer;
@@ -454,7 +454,7 @@ int parse_commit_gently(struct commit *item, int quiet_on_missing)
return -1;
if (item->object.parsed)
return 0;
- if (parse_commit_in_graph(item))
+ if (use_commit_graph && parse_commit_in_graph(item))
return 0;
buffer = read_object_file(&item->object.oid, &type, &size);
if (!buffer)
@@ -466,6 +466,7 @@ int parse_commit_gently(struct commit *item, int quiet_on_missing)
return error("Object %s not a commit",
oid_to_hex(&item->object.oid));
}
+
ret = parse_commit_buffer(the_repository, item, buffer, size, 0);
if (save_commit_buffer && !ret) {
set_commit_buffer(the_repository, item, buffer, size);
@@ -475,6 +476,11 @@ int parse_commit_gently(struct commit *item, int quiet_on_missing)
return ret;
}
+int parse_commit_gently(struct commit *item, int quiet_on_missing)
+{
+ return parse_commit_internal(item, quiet_on_missing, 1);
+}
+
void parse_commit_or_die(struct commit *item)
{
if (parse_commit(item))
'>+1 2019-12-17bisect--helper: convert `*_warning` char pointers to char arrays.Tanushree Tumane1-2/+2 2019-12-16The sixth batchJunio C Hamano1-0/+29 2019-12-16fix-typo: consecutive-word duplicationsryenus5-5/+5 2019-12-13Makefile: drop GEN_HDRSJunio C Hamano1-3/+2 2019-12-13built-in add -p: show helpful hint when nothing can be stagedJohannes Schindelin1-4/+13 2019-12-13built-in add -p: only show the applicable parts of the help textJohannes Schindelin1-4/+28 2019-12-13built-in add -p: implement the 'q' ("quit") commandJohannes Schindelin1-6/+11 2019-12-13built-in add -p: implement the '/' ("search regex") commandJohannes Schindelin2-1/+63 2019-12-13built-in add -p: implement the 'g' ("goto") commandJohannes Schindelin2-0/+104 2019-12-13built-in add -p: implement hunk editingJohannes Schindelin3-17/+325 2019-12-13strbuf: add a helper function to call the editor "on an strbuf"Johannes Schindelin2-0/+39 2019-12-13built-in add -p: coalesce hunks after splitting themJohannes Schindelin1-1/+57 2019-12-13built-in add -p: implement the hunk splitting featureJohannes Schindelin2-2/+225 2019-12-13built-in add -p: show different prompts for mode changes and deletionsJohannes Schindelin1-2/+20 2019-12-13built-in app -p: allow selecting a mode change as a "hunk"Johannes Schindelin1-5/+104 2019-12-13built-in add -p: handle deleted empty filesJohannes Schindelin1-2/+11 2019-12-13built-in add -p: support multi-file diffsJohannes Schindelin1-38/+53 2019-12-13built-in add -p: offer a helpful error message when hunk navigation failedJohannes Schindelin1-11/+33 2019-12-13built-in add -p: color the prompt and the help textJohannes Schindelin1-4/+8 2019-12-13built-in add -p: adjust hunk headers as neededJohannes Schindelin3-23/+151 2019-12-13built-in add -p: show colored hunks by defaultJohannes Schindelin1-17/+62 2019-12-13built-in add -i: wire up the new C code for the `patch` commandJohannes Schindelin1-3/+6 2019-12-13built-in add -i: start implementing the `patch` functionality in CJohannes Schindelin4-5/+277 2019-12-13userdiff: remove empty subexpression from elixir regexEd Maste1-1/+2 2019-12-13doc: indent multi-line items in listJean-Noël Avila2-125/+134 2019-12-13doc: remove non pure ASCII charactersJean-Noël Avila1-2/+2 2019-12-13sparse-checkout: respect core.ignoreCase in cone modeDerrick Stolee4-5/+42 2019-12-13notes: break set_display_notes() into smaller functionsDenton Liu5-32/+45 2019-12-13config/format.txt: clarify behavior of multiple format.notesDenton Liu1-1/+17 2019-12-11gitmodules: link to gitsubmodules guidePhilippe Blain1-1/+1 2019-12-11remote: pass NULL to read_ref_full() because object ID is not neededRené Scharfe1-2/+1 2019-12-11refs: pass NULL to refs_read_ref_full() because object ID is not neededRené Scharfe1-2/+2 2019-12-11t7004: don't create unused fileRené Scharfe1-1/+0 2019-12-11t4256: don't create unused fileRené Scharfe1-1/+1 2019-12-11dir: break part of read_directory_recursive() out for reuseElijah Newren1-23/+37 2019-12-11dir: exit before wildcard fall-through if there is no wildcardElijah Newren2-2/+9 2019-12-11dir: remove stray quote character in commentElijah Newren1-1/+1 2019-12-11Revert "dir.c: make 'git-status --ignored' work within leading directories"Elijah Newren2-5/+7