Skip to content

Commit 919a32f

Browse files
committed
feat(git-commit-mode): add+update git-trailer snippets
- 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
1 parent 88f6351 commit 919a32f

File tree

5 files changed

+19
-6
lines changed

5 files changed

+19
-6
lines changed

git-commit-mode/amend

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# -*- mode: snippet -*-
2+
# name: Amend: ...
3+
# key: am
4+
# --
5+
Amend: ${1:URL|12-CHAR HASH|#GITHUBREF}

git-commit-mode/close

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# -*- mode: snippet -*-
2+
# name: Close: ...
3+
# key: cl
4+
# --
5+
Close: ${1:URL|12-CHAR HASH|#GITHUBREF}

git-commit-mode/co-authored-by

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# -*- mode: snippet -*-
2+
# name: Co-authored-by: ...
3+
# key: cab
4+
# --
5+
Co-authored-by: ${1:username} <${2:[email protected]}>

git-commit-mode/fixes

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- mode: snippet -*-
2-
# name: fixes
2+
# name: Fix: ...
33
# key: fix
4-
# uuid: fix
54
# --
6-
fixes #${1:100}
5+
Ref: ${1:URL|12-CHAR HASH|#GITHUBREF}

git-commit-mode/references

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- mode: snippet -*-
2-
# name: references
2+
# name: Ref: ...
33
# key: ref
4-
# uuid: ref
54
# --
6-
references #${1:100}
5+
Ref: ${1:URL|12-CHAR HASH|#GITHUBREF}

0 commit comments

Comments
 (0)