Skip to content

Commit

Permalink
each-git depth control
Browse files Browse the repository at this point in the history
  • Loading branch information
tadelv committed Jun 10, 2010
1 parent a778153 commit e5a042a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/each-git
@@ -1,6 +1,8 @@
#!/usr/bin/env ruby
# for each git repo in a subdirectory ...
dirs = Dir['**/.git'].map { |gd| File.dirname(gd) }
require 'optparse'
params = ARGV.getopts('d')
dirs = Dir[params[:d]? '**/.git' : '*/.git'].map { |gd| File.dirname(gd) }

def prompt
print ">> "
Expand Down

0 comments on commit e5a042a

Please sign in to comment.