geordi 0.15.3 → 0.15.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,19 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # detect current branch
4
- current_branch = (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').scan(/^\* (.+)$/).flatten.first
5
-
6
- # use branch passed via command line or current branch if none was given
7
- branch = ARGV[0] || current_branch || raise("Need the branch name as first argument since the current branch could not be detected automatically")
8
-
9
- # switch the branch if it is not the current branch
10
- if branch != current_branch
11
- `git status`.include?('working directory clean') or raise 'Dirty working directory. Nothing was pushed.'
12
- `git checkout #{branch}`
13
- end
14
-
15
- # push branch to remote and track it
16
- `git push -u origin #{branch}`
17
-
18
- puts "#{branch} is now tracking origin/#{branch}"
19
-
3
+ puts
4
+ puts " Deprecation Notification: This script does nothing."
5
+ puts
6
+ puts " Pushing a new branch and tracking it immediately with plain git is so easy now."
7
+ puts " https://makandracards.com/makandra/7895-git-push-a-new-branch-and-track-it-immediately"
8
+ puts
9
+ puts " Simple use the git command"
10
+ puts
11
+ puts " git push -u"
12
+ puts
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '0.15.3'
2
+ VERSION = '0.15.4'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geordi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 37
4
+ hash: 43
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 15
9
- - 3
10
- version: 0.15.3
9
+ - 4
10
+ version: 0.15.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Henning Koch