MCPcopy Index your code
hub / github.com/git/git / line_log_process_ranges_arbitrary_commit

Function line_log_process_ranges_arbitrary_commit

line-log.c:1137–1157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1135}
1136
1137int line_log_process_ranges_arbitrary_commit(struct rev_info *rev, struct commit *commit)
1138{
1139 struct line_log_data *range = lookup_line_range(rev, commit);
1140 int changed = 0;
1141
1142 if (range) {
1143 if (commit->parents && !bloom_filter_check(rev, commit, range)) {
1144 struct line_log_data *prange = line_log_data_copy(range);
1145 add_line_range(rev, commit->parents->item, prange);
1146 clear_commit_line_range(rev, commit);
1147 } else if (commit->parents && commit->parents->next)
1148 changed = process_ranges_merge_commit(rev, commit, range);
1149 else
1150 changed = process_ranges_ordinary_commit(rev, commit, range);
1151 }
1152
1153 if (!changed)
1154 commit->object.flags |= TREESAME;
1155
1156 return changed;
1157}
1158
1159static enum rewrite_result line_log_rewrite_one(struct rev_info *rev UNUSED,
1160 struct commit **pp)

Callers 2

line_log_filterFunction · 0.85
get_commit_actionFunction · 0.85

Calls 7

lookup_line_rangeFunction · 0.85
bloom_filter_checkFunction · 0.85
line_log_data_copyFunction · 0.85
add_line_rangeFunction · 0.85
clear_commit_line_rangeFunction · 0.85

Tested by

no test coverage detected