Sha256: bc6bd255893ae13de38a7a66819f97b47c8d18e09269b427ae9e11d1f1adfc88

Contents?: true

Size: 623 Bytes

Versions: 5

Compression:

Stored size: 623 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

5 entries across 5 versions & 1 rubygems

Version Path
geordi-3.1.0 lib/geordi/commands/commit.rb
geordi-3.0.3 lib/geordi/commands/commit.rb
geordi-3.0.2 lib/geordi/commands/commit.rb
geordi-3.0.1 lib/geordi/commands/commit.rb
geordi-3.0.0 lib/geordi/commands/commit.rb