gitk: Reorganize processing of arguments for git log
commit3ed31a8120ec78c495206c89cf5d421d9198f847
authorPaul Mackerras <paulus@samba.org>
Sat, 26 Apr 2008 06:00:00 +0000 (26 16:00 +1000)
committerPaul Mackerras <paulus@samba.org>
Sat, 26 Apr 2008 06:00:00 +0000 (26 16:00 +1000)
treea4b353fd1d68f4a859f6a7476fc522af289c037a
parent92e22ca0a22a916a806d801f8d2f5f26bc92ddc4
gitk: Reorganize processing of arguments for git log

This moves the scanning of the argument list for each view into a
new function, parseviewargs, which is called from start_rev_list.
This also makes the date mode and the merge mode be per-view rather
than global.  In merge mode, we work out the list of relevant files
in a new function called from start_rev_list, so it will be updated
on File->Reload.  Plus we now do that after running the argscmd, so
if we have one and it generates a -d or --merge option they will be
correctly handled now.

The other thing this does is to make errors detected in start_rev_list
not be fatal.  Now instead of doing exit 1 we just pop up and error
window and put "No commits selected" in the graph pane.

Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk