I see that I totally misread your question. I also am having a problem with "ask" on Leopard and it doesn't do anything (as well as the manual "try this" link for it). I'm on work computer and on an older release tho, -tieg
On Thu, Jul 17, 2008 at 1:15 PM, Joshua Ballanco <[EMAIL PROTECTED]> wrote: > I had looked at ruby-git. It seems more focused on manipulating Git stores, > and what I really need is a way to examine them. I plan to switching to > ruby-git once it's a bit more full featured (and yes, I was hoping to be > able to add some of those features), but for now git-rev-list and git-show > do everything I need... > That said, my real issue was with the "ask" bit. I know, I know...I > should've written a minimal test case. Well, here it is: > > Shoes.app do > ask "Are you there, _why?" > end > > On OS X using the latest from the git repo, I get nothing...no ask dialog, > just a blank window. Anyone else seeing this? > > -Josh > > > On Thu, Jul 17, 2008 at 9:30 AM, Grant Hutchins <[EMAIL PROTECTED]> wrote: > >> What about something like Ruby/Git? >> http://www.jointheconversation.org/rubygit/ >> >> I'm not sure if it's built to work on Windows, but from a quick glance >> over the code it seems to have a lot of functionality and at least attempts >> to be OS-agnostic. >> >> Grant >> >> On Thu, Jul 17, 2008 at 10:33 AM, Devyn Cairns <[EMAIL PROTECTED]> >> wrote: >> >>> On 7/17/08, Tieg Zaharia <[EMAIL PROTECTED]> wrote: >>> > >>> > This should work; I tried to condense the first 3 lines into a 1-liner >>> but : >>> > >>> > Shoes.app do >>> > @git_path = `which git`.strip >>> > @git_path = ask("I couldn't find git. Do you know where it is?") if >>> > @git_path.empty? >>> > @git_path.gsub!(/\/git$/, '') >>> > >>> > @git_rev_list = "[EMAIL PROTECTED]/git-rev-list" >>> > >>> > stack do >>> > para "Your git-rev-list command is: [EMAIL PROTECTED]" >>> > end >>> > end >>> > >>> > >>> > >>> > -tieg >>> > >>> > On Thu, Jul 17, 2008 at 3:23 AM, Joshua Ballanco <[EMAIL PROTECTED]> >>> > wrote: >>> > > What am I doing wrong? This should work, yes? Also, I think I'm >>> missing an >>> > easier way to check for the presence of git. Ideas? >>> > > >>> > > Shoes.app do >>> > > ENV['PATH'].split(':').reverse.each do |path| >>> > > cmd_with_path = "#{path}/git-rev-list" >>> > > if File.exists? cmd_with_path >>> > > @git_rev_list = cmd_with_path >>> > > end >>> > > end >>> > > >>> > > if @git_rev_list.nil? >>> > > @git_rev_list = ask "I couldn't find git. Do you know where it >>> is?" >>> > > end >>> > > >>> > > stack do >>> > > para "Your git-rev-list command is: [EMAIL PROTECTED]" >>> > > end >>> > > end >>> > > >>> > > Any/all help appreciated! >>> > > >>> > > Cheers, >>> > > >>> > > Josh >>> > > >>> > >>> > >>> Only one prob: it won't work on windows. (wait, very few ppl actually >>> use git/window$) >>> >> >> >> >> -- >> Grant Hutchins >> [EMAIL PROTECTED] >> > >
