Commit 2cd9179
git-gui: fix exception when trying to stage with empty file list
If there is nothing to stage, there is nothing to stage. Let's not try
to, even if the file list contains nothing at all.
This fixes git-for-windows#1075
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 2365e5b commit 2cd9179
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2505 | 2505 | | |
2506 | 2506 | | |
2507 | 2507 | | |
2508 | | - | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
2509 | 2511 | | |
2510 | 2512 | | |
2511 | 2513 | | |
| |||
2519 | 2521 | | |
2520 | 2522 | | |
2521 | 2523 | | |
2522 | | - | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
2523 | 2531 | | |
2524 | 2532 | | |
2525 | 2533 | | |
| |||
0 commit comments