commit 09f52ba612d54e128919dd618b1cd77bde794442
parent 0a9fc06b4a721045454dff0e1dcecaa194044745
Author: Dash Eclipse <dashezup@disroot.org>
Date: Sun, 10 Jul 2022 03:06:19 +0000
feat: update .config/git/config
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.config/git/config b/.config/git/config
@@ -25,7 +25,7 @@
pretty = xfull
[alias]
# Init
- template = "!f() { git init --template=\"$1/.git\" && git stash; }; f"
+ template = "!f() { git init --template=\"$1/.git\" && git stash && git commit --amend --no-edit --date=now; }; f"
# Diff
d = diff
ds = diff --stat
@@ -51,7 +51,7 @@
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 = !git --no-pager log --oneline --pretty=changelog
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"