Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (9 sloc) 246 Bytes
#!/usr/bin/env ruby
# Written in 2010 by Suraj N. Kurapati <https://github.com/sunaku>
query = Regexp.new(ARGV.shift)
`darcs whatsnew`.split(/^hunk /).each do |hunk|
head, body = hunk.split(/$/, 2)
if body =~ query
puts head
end
end