From bead0f69af0146025d211d388dcff8002086c20f Mon Sep 17 00:00:00 2001 From: Matthias Lederhofer Date: Wed, 24 Jan 2007 18:39:00 +0100 Subject: [PATCH] git.rb: whitespace fuckup --- git.rb | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/git.rb b/git.rb index 04424d8..aa52a28 100644 --- a/git.rb +++ b/git.rb @@ -62,25 +62,25 @@ module Git end end -if $0 == __FILE__ - require 'git' - r = Git::Repository.new(ARGV[0]) - ARGV[1..-1].each do |sha1| - o = r.get_object_by_sha1(sha1) - if !o - puts 'no such object' - next - end - puts o.type - case o.type - when :blob - puts o.content - when :tree - puts o.entry.collect { |e| "%s %s" % [e.sha1, e.name] }.join("\n") - when :commit - puts o.raw_content - when :tag - puts o.raw_content - end - end -end +if $0 == __FILE__ + require 'git' + r = Git::Repository.new(ARGV[0]) + ARGV[1..-1].each do |sha1| + o = r.get_object_by_sha1(sha1) + if !o + puts 'no such object' + next + end + puts o.type + case o.type + when :blob + puts o.content + when :tree + puts o.entry.collect { |e| "%s %s" % [e.sha1, e.name] }.join("\n") + when :commit + puts o.raw_content + when :tag + puts o.raw_content + end + end +end -- 2.11.4.GIT