{"thread":{"id":"15103","subject":"Re: can't use gitk","startedAt":"2008-08-20T09:31:28Z","lastAt":"2008-08-20T09:31:28Z","messageCount":1,"participants":["Andreas Ericsson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"87806","messageId":"48ABE470.7070002@op5.se","threadId":"15103","inReplyTo":"b8d0e50d0808200145l7ec88fb1p3e551c25f045bed4@mail.gmail.com","subject":"Re: can't use gitk","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2008-08-20T09:31:28Z","receivedAt":"2008-08-20T09:31:28Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Xin Yang wrote:\n> Hi Andreas Ericsson,\n> \n\nHi Sissia. I forwarded your email to the git list (git@vger.kernel.org)\nwhere you can hope someone will have the time and knowledge to help you.\nI'm no gitk or TCL expert, so I wouldn't even know where to start.\n\nFor future reference though:\nWhen you want help with an opensource tool you should look for its\nmailing list before firing off mails to individual contributors. Mostly\nall of us work with opensource on our spare time and we, as individuals,\nhardly ever have neither time nor inclination to answer questions in\nprivate. When you ask to the mailing list, the question and the answer\ngets stored for all the world to see in the mailing list archives, so\nthat people in the future with the same problems you have can find it\nwithout anyone having to actually spend time on answering it again.\n\nFor a more exhaustive read on that topic, see\nhttp://catb.org/~esr/faqs/smart-questions.html. It holds an abundance\nof information valuable to those who need answers for free and gratis.\n\n\n> I got your name from git archives but I still can't sue gitk. I guess\n> there are some environment setup issues.\n> Could you give me some clues?\n> \n> The GIT version I installed is:\n> git-1.5.3.2.tar.bz2<http://download.chinaunix.net/download.php?id=25039&ResourceID=3744>\n> \n> The error info I got after running gitk is:\n> Error in startup script: syntax error in expression \"$i >= [llength $argv]\n> && $revtreeargs ne {}\"\n>     while executing\n> \"if {$i >= [llength $argv] && $revtreeargs ne {}} {\n>     # no -- on command line, but some arguments (other than -d)\n>     if {[catch {\n>         set f [eval exec ...\"\n>     (file \"/apps/mds_lrt/git/bin/gitk\" line 7912)\n> \n> Here is code beginning from line 7912:\n> if {$i >= [llength $argv] && $revtreeargs ne {}} {\n>     # no -- on command line, but some arguments (other than -d)\n>     if {[catch {\n>         set f [eval exec git rev-parse --no-revs --no-flags $revtreeargs]\n>         set cmdline_files [split $f \"\\n\"]\n>         set n [llength $cmdline_files]\n>         set revtreeargs [lrange $revtreeargs 0 end-$n]\n>         # Unfortunately git rev-parse doesn't produce an error when\n>         # something is both a revision and a filename.  To be consistent\n>         # with git log and git rev-list, check revtreeargs for filenames.\n>         foreach arg $revtreeargs {\n>             if {[file exists $arg]} {\n>                 show_error {} . \"Ambiguous argument '$arg': both revision\\\n>                                  and filename\"\n>                 exit 1\n>             }\n>         }\n>     } err]} {\n>         # unfortunately we get both stdout and stderr in $err,\n>         # so look for \"fatal:\".\n>         set i [string first \"fatal:\" $err]\n>         if {$i > 0} {\n>             set err [string range $err [expr {$i + 6}] end]\n>         }\n>         show_error {} . \"Bad arguments to gitk:\\n$err\"\n>         exit 1\n>     }\n> }\n> \n> \n> \n> \n> I am looking forward to your reply. :) Thanks a lot.\n> \n> Sissia\n> \n\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"}]}