Skip to content

Commit

Permalink
Add a git commit message global template
Browse files Browse the repository at this point in the history
Displays line limits to help ensure consistent commit messages.
  • Loading branch information
bencromwell committed Apr 1, 2017
1 parent 3cfdb83 commit 3eb18e0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions git/files/gitmessage
@@ -0,0 +1,11 @@

# First thing's first: your <= 50 char summary ##
########################################### c50 ↑

# Write your description below this block ####################### c72 ↓
# Explain the problem that this commit is solving. Focus on why you are
# making this change as opposed to how (the code explains that).
# Are there side effects or other unintuitive consequences of this
# change? Here's the place to explain them.
##################################################################### ↓

5 changes: 5 additions & 0 deletions git/tasks/main.yml
Expand Up @@ -10,6 +10,11 @@
src: gitignore.j2
dest: "{{ ansible_env.HOME }}/.gitignore"

- name: Splat in the git commit message template
copy:
src: gitmessage
dest: "{{ ansible_env.HOME }}/.gitmessage"

#- name: Add git-core PPA
# apt_repository:
# repo: 'ppa:git-core/ppa'
Expand Down
3 changes: 3 additions & 0 deletions git/templates/gitconfig.j2
Expand Up @@ -53,3 +53,6 @@

[push]
default = simple

[commit]
template = {{ ansible_env.HOME }}/.gitmessage

0 comments on commit 3eb18e0

Please sign in to comment.