This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function is-git? { | |
git status &> /dev/null | |
[ $? != 128 ] | |
} | |
function git-init-remote { | |
name=$(basename $PWD).git | |
path=~/repositories/$name | |
if is-git? | |
then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fake `svnlook` for testing prupose. | |
# ./fake_svnlook.rb changed /home/pouet/blah/svn/kikoo -r 3483 | |
# ^-- will just read /tmp/fakeSvn.3483 :) | |
abort 'only the `changed` keyword is allowed on fake_svnlook' if ARGV[0] != 'changed' | |
abort 'only the `-r` option is supported on fake_svnlook' if ARGV[2] != '-r' | |
abort "svnlook: No such revision #{ARGV[3]}" unless File.exists?(fake_svn = "/tmp/fakeSvn.#{ARGV[3]}") | |
puts File.read(fake_svn) |
NewerOlder