From: Pat Thoyts Date: Mon, 21 Sep 2009 23:55:50 +0000 (+0100) Subject: Avoid expanding --all when passing arguments to git log. X-Git-Url: http://privyetmir.co.uk/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fpt%2Frev-parse-fix-2;p=gitk Avoid expanding --all when passing arguments to git log. There is no need to expand --all into a list of all revisions as git log can accept --all as an argument. This avoids any command-line length limitations caused by expanding --all into a list of all revision ids. Signed-off-by: Pat Thoyts --- diff --git a/gitk b/gitk index a0214b7..635b97e 100755 --- a/gitk +++ b/gitk @@ -241,6 +241,8 @@ proc parseviewrevs {view revs} { if {$revs eq {}} { set revs HEAD + } elseif {$revs eq "--all"} { + return $revs } if {[catch {set ids [eval exec git rev-parse $revs]} err]} { # we get stdout followed by stderr in $err