mirror of
https://github.com/gaschz/dotfiles.git
synced 2025-06-06 18:08:31 +02:00
fix: remove unused git aliases
This commit is contained in:
parent
358fbcc0fa
commit
932dab7bfc
@ -17,6 +17,7 @@
|
|||||||
st = status
|
st = status
|
||||||
df = diff
|
df = diff
|
||||||
dc = diff --cached
|
dc = diff --cached
|
||||||
|
ds = diff --stat -r
|
||||||
in = init
|
in = init
|
||||||
inb = init --bare
|
inb = init --bare
|
||||||
ci = commit
|
ci = commit
|
||||||
@ -37,7 +38,7 @@
|
|||||||
rp = remote prune
|
rp = remote prune
|
||||||
rnm = remote rename
|
rnm = remote rename
|
||||||
rmv = remote remove
|
rmv = remote remove
|
||||||
cf = config --file "$HOME/.gitconfig.local"
|
cf = !git config --file ~/.gitconfig.local
|
||||||
; Helpers
|
; Helpers
|
||||||
aliases = "!sh -c 'if test -n \"$1\"; then git config --get alias.$1; else git config --get-regexp \"alias.*\" | colrm 1 6 | sed \"s/[ ]/ = /\"; fi'" -
|
aliases = "!sh -c 'if test -n \"$1\"; then git config --get alias.$1; else git config --get-regexp \"alias.*\" | colrm 1 6 | sed \"s/[ ]/ = /\"; fi'" -
|
||||||
; Patch with subject prefix containing repository name and output
|
; Patch with subject prefix containing repository name and output
|
||||||
@ -53,11 +54,8 @@
|
|||||||
--subject-prefix=\"PATCH ${repo}\" \"${@}\" \
|
--subject-prefix=\"PATCH ${repo}\" \"${@}\" \
|
||||||
--diff-algorithm=histogram \
|
--diff-algorithm=histogram \
|
||||||
'" -
|
'" -
|
||||||
last = log -1 HEAD
|
|
||||||
unstage = reset HEAD --
|
unstage = reset HEAD --
|
||||||
undo = reset --soft HEAD^
|
undo = reset --soft HEAD^
|
||||||
changes = diff --name-status -r
|
|
||||||
diffstat = diff --stat -r
|
|
||||||
who = shortlog -s --
|
who = shortlog -s --
|
||||||
; whois <author name/e-mail>
|
; whois <author name/e-mail>
|
||||||
whois = log -i -1 --pretty='format:%an <%ae>' --author
|
whois = log -i -1 --pretty='format:%an <%ae>' --author
|
||||||
@ -75,7 +73,7 @@
|
|||||||
oneline ="!_() { $(test $# -eq 0 && echo xargs -L1) git log --no-walk --decorate --oneline \"$@\"; }; _"
|
oneline ="!_() { $(test $# -eq 0 && echo xargs -L1) git log --no-walk --decorate --oneline \"$@\"; }; _"
|
||||||
tips = "!_() { t=$(git rev-list --no-merges --max-count=1 \"$@\"); if test -n \"$t\"; then echo $t; _ \"$@\" ^$t; fi; }; _"
|
tips = "!_() { t=$(git rev-list --no-merges --max-count=1 \"$@\"); if test -n \"$t\"; then echo $t; _ \"$@\" ^$t; fi; }; _"
|
||||||
; Submodules.
|
; Submodules.
|
||||||
sub-update-recurse = !sh -c 'git checkout $1 && git submodule update --recursive'
|
sub-update = !sh -c 'git checkout $1 && git submodule update --recursive'
|
||||||
; Signed tags and commits
|
; Signed tags and commits
|
||||||
stag = "!sh -c '\
|
stag = "!sh -c '\
|
||||||
commit_id=\"$(git rev-parse --verify HEAD)\"; \
|
commit_id=\"$(git rev-parse --verify HEAD)\"; \
|
||||||
@ -84,8 +82,8 @@
|
|||||||
echo \"$tag_name\"'"
|
echo \"$tag_name\"'"
|
||||||
ptag = !git push $(git config branch.$(git branch --show-current).remote) $(git describe)
|
ptag = !git push $(git config branch.$(git branch --show-current).remote) $(git describe)
|
||||||
vtag = !git verify-tag -v $(git describe)
|
vtag = !git verify-tag -v $(git describe)
|
||||||
vheadcommit = !git verify-commit -v $(git rev-parse HEAD)
|
vhci = !git verify-commit -v $(git rev-parse HEAD)
|
||||||
vheadtag = !git verify-tag -v $(git tag --points-at=HEAD)
|
vhtag = !git verify-tag -v $(git tag --points-at=HEAD)
|
||||||
[blame]
|
[blame]
|
||||||
coloring = repeatedLines
|
coloring = repeatedLines
|
||||||
[branch]
|
[branch]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user