Sha256: e16b256ae8da5c2c9b58774df2c6e305d25827d58db5b9f3b6d22080b2912f56

Contents?: true

Size: 542 Bytes

Versions: 3

Compression:

Stored size: 542 Bytes

Contents

include IosToolchain::Helpers

namespace :git do
  desc 'Checks for uncommitted changes and aborts if any are found'
  task :check_for_uncommitted_changes do
    puts 'Checking for uncommitted changes...'
    if `git status -s`.chomp.length > 0
      system('git status')
      bail('Uncommitted changes detected (maybe something got auto-corrected?). Please commit these and try again.')
    end
    puts 'Done!'
  end

  desc 'Pushes the current branch to origin'
  task :push_origin do
    system('git push origin head') || bail
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ios_toolchain-0.2.6 lib/ios_toolchain/tasks/git.rake
ios_toolchain-0.2.4 lib/ios_toolchain/tasks/git.rake
ios_toolchain-0.2.3 lib/ios_toolchain/tasks/git.rake