author | Paul Mackerras <paulus@samba.org> | |
Thu, 12 Jul 2007 12:29:49 +0000 (22:29 +1000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Thu, 12 Jul 2007 12:29:49 +0000 (22:29 +1000) | ||
commit | cdaee5db165ba8bae8d3b524950e61666fc36a84 | |
tree | c8aaba31c42f576fb0c02771c8117e59075e7208 | tree | snapshot |
parent | c961b228bcab390a1b42d517b6ed5a1edb55efed | commit | diff |
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>
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>
gitk | diff | blob | history |