Commit f483a0a
completion: recognize more long-options
Command completion only recognizes a subset of the available options for
the various git commands. The set of recognized options needs to balance
between having all useful options and to not clutter the terminal.
This commit adds all long-options that are mentioned in the man-page
synopsis of the respective git command. Possibly dangerous options are
not included in this set, to avoid accidental data loss. The added
options are:
- apply: --recount --directory=
- archive: --output
- branch: --column --no-column --sort= --points-at
- clone: --no-single-branch --shallow-submodules
- commit: --patch --short --date --allow-empty
- describe: --first-parent
- fetch, pull: --unshallow --update-shallow
- fsck: --name-objects
- grep: --break --heading --show-function --function-context
--untracked --no-index
- mergetool: --prompt --no-prompt
- reset: --keep
- revert: --strategy= --strategy-option=
- shortlog: --email
- tag: --merged --no-merged --create-reflog
Signed-off-by: Cornelius Weig <cornelius.weig@tngtech.com>
Helped-by: Johannes Sixt <j6t@kdbg.org>
Reviewed-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent cac8496 commit f483a0a
1 file changed
Lines changed: 20 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
| 939 | + | |
939 | 940 | | |
940 | 941 | | |
941 | 942 | | |
| |||
974 | 975 | | |
975 | 976 | | |
976 | 977 | | |
977 | | - | |
| 978 | + | |
978 | 979 | | |
979 | 980 | | |
980 | 981 | | |
| |||
1029 | 1030 | | |
1030 | 1031 | | |
1031 | 1032 | | |
| 1033 | + | |
1032 | 1034 | | |
1033 | 1035 | | |
1034 | 1036 | | |
| |||
1142 | 1144 | | |
1143 | 1145 | | |
1144 | 1146 | | |
| 1147 | + | |
| 1148 | + | |
1145 | 1149 | | |
1146 | 1150 | | |
1147 | 1151 | | |
| |||
1183 | 1187 | | |
1184 | 1188 | | |
1185 | 1189 | | |
| 1190 | + | |
1186 | 1191 | | |
1187 | 1192 | | |
1188 | 1193 | | |
| |||
1201 | 1206 | | |
1202 | 1207 | | |
1203 | 1208 | | |
1204 | | - | |
| 1209 | + | |
1205 | 1210 | | |
1206 | 1211 | | |
1207 | 1212 | | |
| |||
1284 | 1289 | | |
1285 | 1290 | | |
1286 | 1291 | | |
| 1292 | + | |
1287 | 1293 | | |
1288 | 1294 | | |
1289 | 1295 | | |
| |||
1333 | 1339 | | |
1334 | 1340 | | |
1335 | 1341 | | |
1336 | | - | |
| 1342 | + | |
1337 | 1343 | | |
1338 | 1344 | | |
1339 | 1345 | | |
| |||
1377 | 1383 | | |
1378 | 1384 | | |
1379 | 1385 | | |
| 1386 | + | |
| 1387 | + | |
1380 | 1388 | | |
1381 | 1389 | | |
1382 | 1390 | | |
| |||
1576 | 1584 | | |
1577 | 1585 | | |
1578 | 1586 | | |
1579 | | - | |
| 1587 | + | |
1580 | 1588 | | |
1581 | 1589 | | |
1582 | 1590 | | |
| |||
2465 | 2473 | | |
2466 | 2474 | | |
2467 | 2475 | | |
2468 | | - | |
| 2476 | + | |
2469 | 2477 | | |
2470 | 2478 | | |
2471 | 2479 | | |
| |||
2481 | 2489 | | |
2482 | 2490 | | |
2483 | 2491 | | |
2484 | | - | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
2485 | 2496 | | |
2486 | 2497 | | |
2487 | 2498 | | |
| |||
2509 | 2520 | | |
2510 | 2521 | | |
2511 | 2522 | | |
2512 | | - | |
| 2523 | + | |
2513 | 2524 | | |
2514 | 2525 | | |
2515 | 2526 | | |
| |||
2787 | 2798 | | |
2788 | 2799 | | |
2789 | 2800 | | |
2790 | | - | |
2791 | | - | |
| 2801 | + | |
| 2802 | + | |
2792 | 2803 | | |
2793 | 2804 | | |
2794 | 2805 | | |
| |||
0 commit comments