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

Version Path
nwiki-0.3.3 ext/git-hooks/prepare-commit-msg
nwiki-0.3.2 ext/git-hooks/prepare-commit-msg
nwiki-0.3.1 ext/git-hooks/prepare-commit-msg
nwiki-0.3.0 ext/git-hooks/prepare-commit-msg
nwiki-0.2.11 ext/git-hooks/prepare-commit-msg
nwiki-0.2.10 ext/git-hooks/prepare-commit-msg
nwiki-0.2.9 ext/git-hooks/prepare-commit-msg
nwiki-0.2.8 ext/git-hooks/prepare-commit-msg
nwiki-0.2.7 ext/git-hooks/prepare-commit-msg
nwiki-0.2.6 ext/git-hooks/prepare-commit-msg
nwiki-0.2.5 ext/git-hooks/prepare-commit-msg
nwiki-0.2.4 ext/git-hooks/prepare-commit-msg
nwiki-0.2.3 ext/git-hooks/prepare-commit-msg
nwiki-0.2.2 ext/git-hooks/prepare-commit-msg
nwiki-0.2.1 ext/git-hooks/prepare-commit-msg
nwiki-0.2.0 ext/git-hooks/prepare-commit-msg
nwiki-0.1.11 ext/git-hooks/prepare-commit-msg
nwiki-0.1.10 ext/git-hooks/prepare-commit-msg
nwiki-0.1.9 ext/git-hooks/prepare-commit-msg
nwiki-0.1.8 ext/git-hooks/prepare-commit-msg