feature: fixed the word commit as the first word
This commit is contained in:
@@ -14,7 +14,9 @@ module Feature
|
|||||||
def execute
|
def execute
|
||||||
parts = parse_branch(current_branch)
|
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}"
|
comment = "#{parts[:feature]}: #{comment}"
|
||||||
|
|
||||||
git_commit comment
|
git_commit comment
|
||||||
|
|||||||
Reference in New Issue
Block a user