# File lib/updater/git_updater.rb, line 23 def is_installed? %[git #{repo_directory_arguments()} status 2>&1] =~ /On branch/ ? true : false end
Git has not a revsion number like SVN, so we will take the 7 first chars of the last commit hash
# File lib/updater/git_updater.rb, line 28 def local_revision_number git_log = %[git #{repo_directory_arguments()} log -1 2>&1] git_log[/commit ([0-9a-z]{7})/, 1].to_s end
Generated with the Darkfish Rdoc Generator 2.