Skip to content

Commit

Permalink
Clear whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
bittersweet committed Dec 15, 2011
1 parent 7521c92 commit db68a33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/bugspots
Expand Up @@ -11,12 +11,12 @@ ARGV << '--help' if ARGV.empty?
options = {}
OptionParser.new do |opts|
opts.banner = "Usage: bugspots /path/to/git/repo"

# Option: Set Depth
opts.on('-d', '--depth [depth]', 'depth of log crawl (integer)') do |d|
options[:depth] = d.to_i
end

# Option: Set Timestamp Display
opts.on('--display-timestamps', 'show timestamps of each identified fix commit') do |dt|
options[:display_timestamps] = true
Expand Down
6 changes: 3 additions & 3 deletions lib/bugspots/scanner.rb
Expand Up @@ -9,9 +9,9 @@ def self.scan(repo, depth = 500)
repo = Grit::Repo.new(repo)
fixes = []

repo.commits('master', depth).each do |commit|
repo.commits('master', depth).each do |commit|
if commit.message =~ /fix(es|ed)|close(s|d)/
files = commit.stats.files.map {|s| s.first}
files = commit.stats.files.map {|s| s.first}
fixes << Fix.new(commit.short_message, commit.date, files)
end
end
Expand All @@ -30,4 +30,4 @@ def self.scan(repo, depth = 500)

return fixes, spots
end
end
end

0 comments on commit db68a33

Please sign in to comment.