Commit e8141fc
builtin-apply: keep information about files to be deleted
Example correct diff generated by `diff -M -B' might look like this:
diff --git a/file1 b/file2
similarity index 100%
rename from file1
rename to file2
diff --git a/file2 b/file1
similarity index 100%
rename from file2
rename to file1
Information about removing `file2' comes after information about creation
of new `file2' (renamed from `file1'). Existing implementation isn't able to
apply such patch, because it has to know in advance which files will be
removed.
This patch populates fn_table with information about removal of files
before calling check_patch() for each patch to be applied.
Signed-off-by: Michał Kiedrowicz <michal.kiedrowicz@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 1d49f0d commit e8141fc
2 files changed
Lines changed: 47 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2271 | 2271 | | |
2272 | 2272 | | |
2273 | 2273 | | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
2274 | 2293 | | |
2275 | 2294 | | |
2276 | 2295 | | |
| |||
2291 | 2310 | | |
2292 | 2311 | | |
2293 | 2312 | | |
2294 | | - | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
2295 | 2329 | | |
2296 | 2330 | | |
2297 | 2331 | | |
| |||
2304 | 2338 | | |
2305 | 2339 | | |
2306 | 2340 | | |
2307 | | - | |
2308 | | - | |
| 2341 | + | |
| 2342 | + | |
2309 | 2343 | | |
2310 | 2344 | | |
2311 | 2345 | | |
| |||
2399 | 2433 | | |
2400 | 2434 | | |
2401 | 2435 | | |
2402 | | - | |
2403 | | - | |
| 2436 | + | |
| 2437 | + | |
2404 | 2438 | | |
2405 | | - | |
2406 | 2439 | | |
2407 | 2440 | | |
2408 | 2441 | | |
2409 | 2442 | | |
2410 | 2443 | | |
2411 | 2444 | | |
2412 | 2445 | | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
2413 | 2449 | | |
2414 | 2450 | | |
2415 | 2451 | | |
| |||
2471 | 2507 | | |
2472 | 2508 | | |
2473 | 2509 | | |
| 2510 | + | |
2474 | 2511 | | |
2475 | 2512 | | |
2476 | 2513 | | |
| |||
2481 | 2518 | | |
2482 | 2519 | | |
2483 | 2520 | | |
2484 | | - | |
| 2521 | + | |
| 2522 | + | |
2485 | 2523 | | |
2486 | 2524 | | |
2487 | 2525 | | |
| |||
2533 | 2571 | | |
2534 | 2572 | | |
2535 | 2573 | | |
| 2574 | + | |
2536 | 2575 | | |
2537 | 2576 | | |
2538 | 2577 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments