Commit 813b473
filter-branch: Simplify parent computation.
We can use git rev-list --parents when we list the commits to rewrite.
It is not necessary to run git rev-list --parents for each commit in the
loop.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 685ef54 commit 813b473
1 file changed
Lines changed: 7 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | 229 | | |
241 | 230 | | |
242 | 231 | | |
| |||
329 | 318 | | |
330 | 319 | | |
331 | 320 | | |
332 | | - | |
| 321 | + | |
| 322 | + | |
333 | 323 | | |
334 | 324 | | |
335 | | - | |
336 | | - | |
| 325 | + | |
| 326 | + | |
337 | 327 | | |
338 | 328 | | |
339 | 329 | | |
340 | 330 | | |
341 | 331 | | |
342 | 332 | | |
343 | | - | |
| 333 | + | |
344 | 334 | | |
345 | 335 | | |
346 | 336 | | |
| |||
374 | 364 | | |
375 | 365 | | |
376 | 366 | | |
377 | | - | |
| 367 | + | |
378 | 368 | | |
379 | 369 | | |
380 | 370 | | |
| |||
389 | 379 | | |
390 | 380 | | |
391 | 381 | | |
392 | | - | |
| 382 | + | |
393 | 383 | | |
394 | 384 | | |
395 | 385 | | |
| |||
0 commit comments