commit 0a9fc06b4a721045454dff0e1dcecaa194044745
parent 147ffce743404125afae161438358ec71f2c1650
Author: Dash Eclipse <dashezup@disroot.org>
Date: Tue, 5 Jul 2022 05:43:10 +0000
feat: update .config/git/config
add git changelog-md
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/.config/git/config b/.config/git/config
@@ -50,7 +50,9 @@
s = status -s
cloc = !cloc -vcs git
stats = !git diff --stat \"$(git hash-object -t tree /dev/null)\"
+ # git changelog -n-1
changelog = !git --no-pager log --oneline --pretty=changelog -n5
+ changelog-md = "!git log --oneline --pretty=changelog | sed 's/^>/-/; 1i # Changelog\\n' | tee CHANGELOG.md && git add CHANGELOG.md"
contrib = shortlog -sne
tree = "!f() { git ls-files $@ | tree --fromfile; }; f"
find = !git ls-tree --full-tree -r --name-only HEAD | sk --multi --layout=reverse --prompt='git find '