Commit 1337498
completion: use __gitcomp_builtin for format-patch
This helps format-patch gain completion for a couple new options,
notably --range-diff.
Since send-email completion relies on $__git_format_patch_options
which is now reduced, we need to do something not to regress
send-email completion.
The workaround here is implement --git-completion-helper in
send-email.perl just as a bridge to "format-patch --git-completion-helper".
This is enough to use __gitcomp_builtin on send-email (to take
advantage of caching).
In the end, send-email.perl can probably reuse the same info it passes
to GetOptions() to generate full --git-completion-helper output so
that we don't need to keep track of its options in git-completion.bash
anymore. But that's something for another boring day.
Helped-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent c4df23f commit 1337498
2 files changed
+14
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1532 | 1532 | | |
1533 | 1533 | | |
1534 | 1534 | | |
1535 | | - | |
1536 | | - | |
1537 | | - | |
1538 | | - | |
1539 | | - | |
1540 | | - | |
1541 | | - | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
1542 | 1538 | | |
1543 | 1539 | | |
1544 | 1540 | | |
| |||
1551 | 1547 | | |
1552 | 1548 | | |
1553 | 1549 | | |
1554 | | - | |
| 1550 | + | |
1555 | 1551 | | |
1556 | 1552 | | |
1557 | 1553 | | |
| |||
2081 | 2077 | | |
2082 | 2078 | | |
2083 | 2079 | | |
2084 | | - | |
| 2080 | + | |
2085 | 2081 | | |
2086 | 2082 | | |
2087 | 2083 | | |
| |||
2090 | 2086 | | |
2091 | 2087 | | |
2092 | 2088 | | |
2093 | | - | |
| 2089 | + | |
2094 | 2090 | | |
2095 | 2091 | | |
2096 | 2092 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
122 | 127 | | |
123 | 128 | | |
124 | 129 | | |
| |||
311 | 316 | | |
312 | 317 | | |
313 | 318 | | |
| 319 | + | |
314 | 320 | | |
315 | 321 | | |
316 | 322 | | |
| |||
373 | 379 | | |
374 | 380 | | |
375 | 381 | | |
| 382 | + | |
376 | 383 | | |
377 | 384 | | |
378 | 385 | | |
| 386 | + | |
379 | 387 | | |
380 | 388 | | |
381 | 389 | | |
| |||
0 commit comments