Skip to content

Commit

Permalink
feat(git-commit-mode): add+update git-trailer snippets
Browse files Browse the repository at this point in the history
- Add Co-authored-by: snippet
- Adds and updates old git trailer snippets to match Doom's git
  conventions (which are still recognized by Git{hub,lab}).

Ref: https://discourse.doomemacs.org/t/git-conventions/2407
  • Loading branch information
hlissner committed Jun 21, 2022
1 parent 88f6351 commit 919a32f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
5 changes: 5 additions & 0 deletions git-commit-mode/amend
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Amend: ...
# key: am
# --
Amend: ${1:URL|12-CHAR HASH|#GITHUBREF}
5 changes: 5 additions & 0 deletions git-commit-mode/close
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Close: ...
# key: cl
# --
Close: ${1:URL|12-CHAR HASH|#GITHUBREF}
5 changes: 5 additions & 0 deletions git-commit-mode/co-authored-by
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Co-authored-by: ...
# key: cab
# --
Co-authored-by: ${1:username} <${2:$1@users.noreply.github.com}>
5 changes: 2 additions & 3 deletions git-commit-mode/fixes
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- mode: snippet -*-
# name: fixes
# name: Fix: ...
# key: fix
# uuid: fix
# --
fixes #${1:100}
Ref: ${1:URL|12-CHAR HASH|#GITHUBREF}
5 changes: 2 additions & 3 deletions git-commit-mode/references
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- mode: snippet -*-
# name: references
# name: Ref: ...
# key: ref
# uuid: ref
# --
references #${1:100}
Ref: ${1:URL|12-CHAR HASH|#GITHUBREF}

0 comments on commit 919a32f

Please sign in to comment.