Skip to content

Commit

Permalink
rename and +x
Browse files Browse the repository at this point in the history
  • Loading branch information
will committed Feb 4, 2014
1 parent deadfdb commit dead69a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions amend.rb → git-vain
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env ruby

require 'digest/sha1'

MSG = 'dead'
Expand All @@ -16,12 +18,12 @@ def parse_commit(original)

def search
counter = 0
(0..3600).each do |c|
[c*1,c*-1].uniq.each do |co|
comm_t = @t_committer+co
(0..3600).each do |a|
[a*1,a*-1].uniq.each do |ao|
auth_t = @t_author+ao
(0..3600).each do |c|
[c*1,c*-1].uniq.each do |co|
comm_t = @t_committer+co
#(0..80 ).each do |space|
content = [@head, auth_t, @middle, comm_t, @rest].join
store = "commit #{content.length}\0" + content
Expand All @@ -43,6 +45,8 @@ def search

content, sha1 = search()

exit if ARGV.include? "--dry-run"

File.open("/tmp/commit", 'w') {|f| f.write(content) }
sha2=`git hash-object -t commit /tmp/commit`.strip

Expand Down

0 comments on commit dead69a

Please sign in to comment.