lib/grog/git_log.rb in grog-0.0.1 vs lib/grog/git_log.rb in grog-0.0.2
- old
+ new
@@ -79,11 +79,11 @@
end
def self.hash_from_rev_names(rev_names)
hash = Hash.new { |hash, key| hash[key] = [] }
rev_names.each do |rev_name|
- sha1 = GitLog.first_line_of_command("git-rev-parse #{rev_name}")
+ sha1 = GitLog.first_line_of_command("git rev-parse #{rev_name}")
hash[sha1] << rev_name
end
hash
end
@@ -92,10 +92,10 @@
map { |line| line[2..-1].split(' -> ').first }
@branches = GitLog.hash_from_rev_names(branch_names)
end
def get_all_tags
- tag_names = GitLog.lines_of_command("git-tag")
+ tag_names = GitLog.lines_of_command("git tag")
@tags = GitLog.hash_from_rev_names(tag_names)
end
def fetch_log
get_all_branches