| 241 | } |
| 242 | |
| 243 | struct commit_list *get_shallow_commits(struct object_array *heads, |
| 244 | struct object_array *shallows, int deepen_relative, |
| 245 | int depth, int shallow_flag, int not_shallow_flag) |
| 246 | { |
| 247 | if (shallows && deepen_relative) { |
| 248 | int cur_shallow_depth = get_shallows_depth(heads, shallows); |
| 249 | if (cur_shallow_depth) |
| 250 | depth += cur_shallow_depth; |
| 251 | else |
| 252 | return NULL; |
| 253 | } |
| 254 | return get_shallows_or_depth(heads, NULL, NULL, |
| 255 | depth, shallow_flag, not_shallow_flag); |
| 256 | } |
| 257 | |
| 258 | static void show_commit(struct commit *commit, void *data) |
| 259 | { |
no test coverage detected