@matheusbsbs / matheus-bagliano / commits / f78e7ab736
Fork 0

gitk: Fix bug in parsing multiple revision arguments

If the user specified multiple revisions arguments on the command line or for a view, we were passing the whole list of arguments to git rev-parse as a single argument, and thus git rev-parse didn't interpret it as revisions. This fixes it by adding an eval so the arguments get passed to git rev-parse as separate arguments. Signed-off-by: Paul Mackerras <paulus@samba.org>

Paul Mackerras committed Dec 7, 2007 at 20:50 UTC f78e7ab736467a0ae98695a8c661fe46fc93c50f
1 file changed +1 -1
gitk
+1 -1
@@ -106,7 +106,7 @@ proc start_rev_list {view} {
106 set vnextroot($view) 0
107 varcinit $view
108
109 - set commits [exec git rev-parse --default HEAD --revs-only \
109 + set commits [eval exec git rev-parse --default HEAD --revs-only \
110 $viewargs($view)]
111 set viewincl($view) {}
112 foreach c $commits {