Sha256: ba87d11d7b96b17424d23b03ccf36e347e9d53886f928584b6750dcf65670da8

Contents?: true

Size: 624 Bytes

Versions: 10

Compression:

Stored size: 624 Bytes

Contents

desc 'commit', 'Commit using a story title from Pivotal Tracker'

long_desc <<-LONGDESC
Example: `geordi commit`

Any extra arguments are forwarded to `git commit -m <message>`.

If there are no staged changes, prints a warning but will continue to create
an empty commit.

On the first execution we ask for your Pivotal Tracker API token. It will be
stored in `~/.gitpt`.
LONGDESC

def commit(*git_args)
  raise <<-TEXT if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.1')
Unsupported Ruby Version #{RUBY_VERSION}. `geordi commit` requires Ruby 2.1+.
  TEXT

  require 'geordi/gitpt'

  Gitpt.new.run(git_args)
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
geordi-2.12.3 lib/geordi/commands/commit.rb
geordi-2.12.2 lib/geordi/commands/commit.rb
geordi-2.12.1 lib/geordi/commands/commit.rb
geordi-2.12.0 lib/geordi/commands/commit.rb
geordi-2.11.0 lib/geordi/commands/commit.rb
geordi-2.10.1 lib/geordi/commands/commit.rb
geordi-2.10.0 lib/geordi/commands/commit.rb
geordi-2.9.0 lib/geordi/commands/commit.rb
geordi-2.8.0 lib/geordi/commands/commit.rb
geordi-2.7.0 lib/geordi/commands/commit.rb