Commit cdaee5d
committed
gitk: Improve handling of -- and ambiguous arguments
This makes gitk more consistent with git rev-list and git log in its
handling of arguments that could be either a revision or a filename;
now gitk displays an error message and quits, rather than treating it
as a revision and getting an error in the underlying git log. Now
gitk always passes "--" to git log even if no filenames are being
specified.
It also makes gitk display errors in invoking git log in a window
rather than on stderr, and makes gitk stop looking for a -d flag
when it sees a "--" argument.
Signed-off-by: Paul Mackerras <paulus@samba.org>1 parent c961b22 commit cdaee5d
1 file changed
+29
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 90 | | |
95 | 91 | | |
96 | 92 | | |
97 | 93 | | |
98 | 94 | | |
99 | | - | |
100 | | - | |
| 95 | + | |
| 96 | + | |
101 | 97 | | |
102 | | - | |
| 98 | + | |
103 | 99 | | |
104 | 100 | | |
105 | 101 | | |
| |||
7471 | 7467 | | |
7472 | 7468 | | |
7473 | 7469 | | |
| 7470 | + | |
| 7471 | + | |
| 7472 | + | |
| 7473 | + | |
| 7474 | + | |
| 7475 | + | |
| 7476 | + | |
7474 | 7477 | | |
| 7478 | + | |
| 7479 | + | |
7475 | 7480 | | |
7476 | 7481 | | |
7477 | 7482 | | |
7478 | 7483 | | |
| 7484 | + | |
| 7485 | + | |
| 7486 | + | |
| 7487 | + | |
7479 | 7488 | | |
7480 | 7489 | | |
7481 | 7490 | | |
7482 | 7491 | | |
| 7492 | + | |
7483 | 7493 | | |
7484 | 7494 | | |
7485 | | - | |
7486 | | - | |
7487 | | - | |
7488 | | - | |
7489 | | - | |
7490 | | - | |
7491 | | - | |
7492 | | - | |
7493 | | - | |
7494 | | - | |
7495 | | - | |
7496 | | - | |
7497 | | - | |
| 7495 | + | |
| 7496 | + | |
7498 | 7497 | | |
7499 | 7498 | | |
7500 | 7499 | | |
7501 | 7500 | | |
7502 | 7501 | | |
| 7502 | + | |
| 7503 | + | |
| 7504 | + | |
| 7505 | + | |
| 7506 | + | |
| 7507 | + | |
| 7508 | + | |
| 7509 | + | |
| 7510 | + | |
| 7511 | + | |
7503 | 7512 | | |
7504 | 7513 | | |
7505 | 7514 | | |
| |||
0 commit comments