Permalink
Browse files

Shorten Commit Message

The subject line of a git commit message is 50 chars, the word "references" is 10, which means the current code uses 20% of the subject line per issue referenced before you can even get to meat of your subject line. Shortening to "re" allows the user to tag multiple issues in a commit and still squeeze in a meaningful subject.
  • Loading branch information...
1 parent c49af40 commit 53a06c7a2dab8dc8dced34ed81caa1a60a1cf879 @robludwig robludwig committed Oct 20, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 commit-msg
View
@@ -36,7 +36,7 @@ def process(commit_msg_path):
return
# convert items into string
- items_string = ' '.join(map(lambda x: 'References #' + str(x) + '.', items))
+ items_string = ' '.join(map(lambda x: 'Re #' + str(x) + '.', items))
# create new commit message
new_commit_msg = items_string + ' ' + commit_msg

0 comments on commit 53a06c7

Please sign in to comment.