Commit b8f50e5
fast-import: add support for new 'alias' command
fast-export and fast-import have nice --import-marks flags which allow
for incremental migrations. However, if there is a mark in
fast-export's file of marks without a corresponding mark in the one for
fast-import, then we run the risk that fast-export tries to send new
objects relative to the mark it knows which fast-import does not,
causing fast-import to fail.
This arises in practice when there is a filter of some sort running
between the fast-export and fast-import processes which prunes some
commits programmatically. Provide such a filter with the ability to
alias pruned commits to their most recent non-pruned ancestor.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent f73b2ab commit b8f50e5
File tree
3 files changed
+79
-10
lines changed- Documentation
- t
3 files changed
+79
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
340 | 347 | | |
341 | 348 | | |
342 | 349 | | |
| |||
914 | 921 | | |
915 | 922 | | |
916 | 923 | | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
917 | 939 | | |
918 | 940 | | |
919 | 941 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2491 | 2491 | | |
2492 | 2492 | | |
2493 | 2493 | | |
2494 | | - | |
| 2494 | + | |
2495 | 2495 | | |
2496 | | - | |
2497 | 2496 | | |
2498 | 2497 | | |
2499 | 2498 | | |
2500 | | - | |
2501 | | - | |
2502 | | - | |
2503 | 2499 | | |
2504 | 2500 | | |
2505 | | - | |
| 2501 | + | |
2506 | 2502 | | |
2507 | 2503 | | |
2508 | 2504 | | |
2509 | 2505 | | |
2510 | 2506 | | |
2511 | 2507 | | |
2512 | 2508 | | |
2513 | | - | |
2514 | | - | |
| 2509 | + | |
| 2510 | + | |
2515 | 2511 | | |
2516 | 2512 | | |
2517 | 2513 | | |
| |||
2525 | 2521 | | |
2526 | 2522 | | |
2527 | 2523 | | |
2528 | | - | |
| 2524 | + | |
2529 | 2525 | | |
2530 | 2526 | | |
2531 | 2527 | | |
2532 | 2528 | | |
2533 | 2529 | | |
2534 | | - | |
| 2530 | + | |
2535 | 2531 | | |
2536 | 2532 | | |
2537 | 2533 | | |
| |||
2542 | 2538 | | |
2543 | 2539 | | |
2544 | 2540 | | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
2545 | 2561 | | |
2546 | 2562 | | |
2547 | 2563 | | |
| |||
3087 | 3103 | | |
3088 | 3104 | | |
3089 | 3105 | | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
| 3123 | + | |
| 3124 | + | |
| 3125 | + | |
| 3126 | + | |
| 3127 | + | |
3090 | 3128 | | |
3091 | 3129 | | |
3092 | 3130 | | |
| |||
3214 | 3252 | | |
3215 | 3253 | | |
3216 | 3254 | | |
| 3255 | + | |
| 3256 | + | |
3217 | 3257 | | |
3218 | 3258 | | |
3219 | 3259 | | |
| |||
3370 | 3410 | | |
3371 | 3411 | | |
3372 | 3412 | | |
| 3413 | + | |
| 3414 | + | |
3373 | 3415 | | |
3374 | 3416 | | |
3375 | 3417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
| |||
195 | 199 | | |
196 | 200 | | |
197 | 201 | | |
| 202 | + | |
198 | 203 | | |
199 | 204 | | |
200 | 205 | | |
| |||
0 commit comments