projects
/
git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
shortlog: split builtin from common code
[git]
/
git-rb-setup.rb
1
#!/usr/bin/env ruby
2
3
def die(*args)
4
fmt = args.shift
5
$stderr.printf("fatal: %s\n" % fmt, *args)
6
exit 128
7
end
8
9
def sha1_to_hex(sha1)
10
sha1.unpack('H*').first
11
end