Sha256: 283d3f6ede43db11df85c4c29dbd1ea0347b453fe70908782286776ea3a5f92d
Contents?: true
Size: 308 Bytes
Versions: 20
Compression:
Stored size: 308 Bytes
Contents
#!/usr/bin/env ruby exit unless ARGV[1].nil? message = `git diff --cached --name-status -r`. force_encoding('UTF-8'). split("\n").map{|e| e.split }. select{|e| e[1] =~ /\.org$/ }. map{|e| File.basename(e[1]).sub(/\.org$/, '') }. join(',') File.write(ARGV[0], message + "\n" + File.read(ARGV[0]))
Version data entries
20 entries across 20 versions & 1 rubygems