From 6c55caafc326c23c4da9aae9bdfa0260400e467c Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Tue, 8 Nov 2011 00:36:44 -0600 Subject: [PATCH] Clean up gitconfig --- vcs/git/gitconfig | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/vcs/git/gitconfig b/vcs/git/gitconfig index cd42c47..ad3a6ac 100644 --- a/vcs/git/gitconfig +++ b/vcs/git/gitconfig @@ -28,30 +28,22 @@ [diff "ruby"] funcname = ^ *\\(\\(class\\|module\\|def\\) .*\\) -# Kaleidoscope.app -[difftool "Kaleidoscope"] - cmd = ksdiff-wrapper git \"$LOCAL\" \"$REMOTE\" -[difftool] - prompt = false -[diff] - tool = Kaleidoscope - # http://bitfission.com/blog/2010/07/auto-merge-gemfile-lock.html [merge "bundlelock"] - name = lock Gemfile - driver = bundle install + name = lock Gemfile + driver = "bundle check && bundle install" # http://tbaggery.com/2010/10/24/reduce-your-rails-schema-conflicts.html [merge "railsschema"] - name = newer Rails schema version - driver = "ruby -e '\n\ - system %(git), %(merge-file), %(--marker-size=%L), %(%A), %(%O), %(%B)\n\ - b = File.read(%(%A))\n\ - b.sub!(/^<+ .*\\nActiveRecord::Schema\\.define.:version => (\\d+). do\\n=+\\nActiveRecord::Schema\\.define.:version => (\\d+). do\\n>+ .*/) do\n\ - %(ActiveRecord::Schema.define(:version => #{[$1, $2].max}) do)\n\ - end\n\ - File.open(%(%A), %(w)) {|f| f.write(b)}\n\ - exit 1 if b.include?(%(<)*%L)'" + name = newer Rails schema version + driver = "ruby -e '\n\ + system %(git), %(merge-file), %(--marker-size=%L), %(%A), %(%O), %(%B)\n\ + b = File.read(%(%A))\n\ + b.sub!(/^<+ .*\\nActiveRecord::Schema\\.define.:version => (\\d+). do\\n=+\\nActiveRecord::Schema\\.define.:version => (\\d+). do\\n>+ .*/) do\n\ + %(ActiveRecord::Schema.define(:version => #{[$1, $2].max}) do)\n\ + end\n\ + File.open(%(%A), %(w)) {|f| f.write(b)}\n\ + exit 1 if b.include?(%(<)*%L)'" # https://gist.github.com/833086 [url "git@github.com:"] @@ -69,6 +61,5 @@ [url "git@heroku.com:"] insteadOf = "heroku:" - [github] - user = bjeanes + user = bjeanes