dotfiles

Dash Eclipse's dotfiles
git clone git://ezup.dev/dotfiles.git
Log | Files | Refs | README | LICENSE

commit 5e110bea3dc588aaffd7f21713afeb185ccfb6b2
parent 30b356ae899b478ed55fe2b298bbcee12a363e2f
Author: Dash Eclipse <dashezup@disroot.org>
Date:   Tue, 22 Mar 2022 22:34:05 +0000

feat: gitconfig: add "git s"

modified "git arc"

Diffstat:
M.gitconfig | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitconfig b/.gitconfig @@ -23,6 +23,7 @@ xfull = format:%m %C(yellow)%H%C(reset)%C(auto)%d%n%m %C(blue bold)%aN%C(reset) %C(ul)<%ae>%C(reset)%n%m %C(cyan)%ai%C(reset) %C(magenta)(%cr)%C(reset)%n%n%C(auto)%w(0,4,4)%B [alias] # git log --name-status + s = status -s wip = "!git add --all; git commit -a -m \"wip: update\"" wtc = "!git add --all; git commit -a -m \"[WTC] $(curl -s whatthecommit.com/index.txt)\"" cloc = !cloc -vcs git @@ -37,4 +38,4 @@ # git arc [tar|tgz|tar.gz|zip] # git archive --list # zcat repo_2022-03-22_feat-initial-commit.tar.gz | git get-tar-commit-id - arc = "!f() { test -z \"$1\" && return 1; RN=\"$(basename $(git rev-parse --show-toplevel))\"; EN=\"$(git log -1 --oneline --pretty=%as_%f)\"; git archive --format=\"$1\" -o \"${RN}_${EN}.${1}\" --prefix=\"$(basename $(git rev-parse --show-toplevel))_$(date -I)/\" HEAD; }; f" + arc = "!f() { test -z \"$1\" && return 1; FMT=\"$1\"; RN=\"$(basename $(git rev-parse --show-toplevel))\"; EN=\"$(git log -1 --oneline --pretty=%as_%f)\"; git archive --format=\"$FMT\" -o \"${RN}_${EN}.${FMT}\" --prefix=\"${RN}/\" HEAD; }; f"