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

Function process_ranges_ordinary_commit

line-log.c:1052–1071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1050}
1051
1052static int process_ranges_ordinary_commit(struct rev_info *rev, struct commit *commit,
1053 struct line_log_data *range)
1054{
1055 struct commit *parent = NULL;
1056 struct diff_queue_struct queue = DIFF_QUEUE_INIT;
1057 struct line_log_data *parent_range;
1058 int changed;
1059
1060 if (commit->parents)
1061 parent = commit->parents->item;
1062
1063 queue_diffs(range, &rev->diffopt, &queue, commit, parent);
1064 changed = process_all_files(&parent_range, rev, &queue, range);
1065
1066 if (parent)
1067 add_line_range(rev, parent, parent_range);
1068 free_line_log_data(parent_range);
1069 diff_queue_clear(&queue);
1070 return changed;
1071}
1072
1073static int process_ranges_merge_commit(struct rev_info *rev, struct commit *commit,
1074 struct line_log_data *range)

Calls 5

queue_diffsFunction · 0.85
process_all_filesFunction · 0.85
add_line_rangeFunction · 0.85
free_line_log_dataFunction · 0.85
diff_queue_clearFunction · 0.85

Tested by

no test coverage detected