From 60b1c90cc1a29600da80891d62647ed241b908e9 Mon Sep 17 00:00:00 2001 From: rkiel Date: Sat, 18 Jul 2015 08:55:52 -0400 Subject: [PATCH] feature: fixed the word commit as the first word --- lib/feature/commit.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/feature/commit.rb b/lib/feature/commit.rb index f9c3f64..fb54350 100644 --- a/lib/feature/commit.rb +++ b/lib/feature/commit.rb @@ -14,7 +14,9 @@ module Feature def execute parts = parse_branch(current_branch) - comment = argv.reject { |x| x == '-m' }.join(' ') + comment = argv.reject { |x| x == '-m' } + comment.shift if comment[0] == 'commit' + comment = comment.join(' ') comment = "#{parts[:feature]}: #{comment}" git_commit comment