Commit 5af9d5f
completion: complete config variables and values for 'git clone --config='
Completing configuration sections and variable names for the stuck
argument of 'git clone --config=<TAB>' requires a bit of extra care
compared to doing the same for the unstuck argument of 'git clone
--config <TAB>', because we have to deal with that '--config=' being
part of the current word to be completed.
Add an option to the __git_complete_config_variable_name_and_value()
and in turn to the __git_complete_config_variable_name() helper
functions to specify the current section/variable name to be
completed, so they can be used even when completing the stuck argument
of '--config='.
__git_complete_config_variable_value() already has such an option, and
thus no further changes were necessary to complete possible values
after 'git clone --config=section.name=<TAB>'.
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 88cd790 commit 5af9d5f
File tree
2 files changed
+70
-17
lines changed- contrib/completion
- t
2 files changed
+70
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1406 | 1406 | | |
1407 | 1407 | | |
1408 | 1408 | | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
1409 | 1414 | | |
1410 | 1415 | | |
1411 | 1416 | | |
| |||
2352 | 2357 | | |
2353 | 2358 | | |
2354 | 2359 | | |
| 2360 | + | |
| 2361 | + | |
2355 | 2362 | | |
2356 | 2363 | | |
2357 | 2364 | | |
2358 | 2365 | | |
2359 | 2366 | | |
2360 | | - | |
| 2367 | + | |
2361 | 2368 | | |
2362 | 2369 | | |
2363 | 2370 | | |
| 2371 | + | |
2364 | 2372 | | |
2365 | 2373 | | |
2366 | 2374 | | |
2367 | 2375 | | |
2368 | 2376 | | |
2369 | 2377 | | |
2370 | | - | |
| 2378 | + | |
2371 | 2379 | | |
2372 | | - | |
| 2380 | + | |
| 2381 | + | |
2373 | 2382 | | |
2374 | 2383 | | |
2375 | 2384 | | |
2376 | 2385 | | |
2377 | | - | |
| 2386 | + | |
| 2387 | + | |
2378 | 2388 | | |
2379 | 2389 | | |
2380 | 2390 | | |
2381 | 2391 | | |
2382 | 2392 | | |
2383 | | - | |
| 2393 | + | |
| 2394 | + | |
2384 | 2395 | | |
2385 | 2396 | | |
2386 | 2397 | | |
2387 | 2398 | | |
2388 | 2399 | | |
2389 | 2400 | | |
2390 | 2401 | | |
2391 | | - | |
| 2402 | + | |
| 2403 | + | |
2392 | 2404 | | |
2393 | 2405 | | |
2394 | 2406 | | |
2395 | 2407 | | |
2396 | | - | |
| 2408 | + | |
| 2409 | + | |
2397 | 2410 | | |
2398 | 2411 | | |
2399 | 2412 | | |
2400 | 2413 | | |
2401 | | - | |
| 2414 | + | |
| 2415 | + | |
2402 | 2416 | | |
2403 | 2417 | | |
2404 | 2418 | | |
2405 | 2419 | | |
2406 | | - | |
| 2420 | + | |
| 2421 | + | |
2407 | 2422 | | |
2408 | 2423 | | |
2409 | 2424 | | |
2410 | 2425 | | |
2411 | 2426 | | |
2412 | | - | |
| 2427 | + | |
| 2428 | + | |
2413 | 2429 | | |
2414 | 2430 | | |
2415 | 2431 | | |
2416 | 2432 | | |
2417 | 2433 | | |
2418 | 2434 | | |
2419 | 2435 | | |
2420 | | - | |
| 2436 | + | |
| 2437 | + | |
2421 | 2438 | | |
2422 | 2439 | | |
2423 | 2440 | | |
2424 | 2441 | | |
2425 | 2442 | | |
2426 | | - | |
| 2443 | + | |
| 2444 | + | |
2427 | 2445 | | |
2428 | 2446 | | |
2429 | 2447 | | |
2430 | 2448 | | |
2431 | 2449 | | |
2432 | | - | |
| 2450 | + | |
2433 | 2451 | | |
2434 | 2452 | | |
2435 | 2453 | | |
| |||
2441 | 2459 | | |
2442 | 2460 | | |
2443 | 2461 | | |
2444 | | - | |
| 2462 | + | |
2445 | 2463 | | |
2446 | 2464 | | |
2447 | 2465 | | |
2448 | 2466 | | |
2449 | 2467 | | |
2450 | 2468 | | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
2451 | 2473 | | |
2452 | 2474 | | |
2453 | | - | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
2454 | 2486 | | |
2455 | 2487 | | |
2456 | | - | |
| 2488 | + | |
2457 | 2489 | | |
2458 | 2490 | | |
2459 | | - | |
| 2491 | + | |
2460 | 2492 | | |
2461 | 2493 | | |
2462 | 2494 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1740 | 1740 | | |
1741 | 1741 | | |
1742 | 1742 | | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
1743 | 1764 | | |
1744 | 1765 | | |
1745 | 1766 | | |
| |||
0 commit comments