mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 20:54:34 +00:00
Make total-lines recurse over the whole tree, not work dir
This commit is contained in:
parent
fc4b6f597e
commit
b017d2b67e
|
@ -64,7 +64,7 @@
|
||||||
show-merge = "!sh -c 'merge=$(git find-merge $0 $1) && [ -n \"$merge\" ] && git show $merge'"
|
show-merge = "!sh -c 'merge=$(git find-merge $0 $1) && [ -n \"$merge\" ] && git show $merge'"
|
||||||
|
|
||||||
comitter-lines = "!git log --author=\"$1\" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf \"added lines: %s, removed lines: %s, total lines: %s\\n\", add, subs, loc }' #"
|
comitter-lines = "!git log --author=\"$1\" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf \"added lines: %s, removed lines: %s, total lines: %s\\n\", add, subs, loc }' #"
|
||||||
total-lines = "!git ls-files | xargs cat | wc -l"
|
total-lines = "!git ls-tree --full-tree --name-only -r HEAD | xargs cat | wc -l"
|
||||||
[credential]
|
[credential]
|
||||||
helper = store --file ~/.config/git/git-credentials
|
helper = store --file ~/.config/git/git-credentials
|
||||||
[core]
|
[core]
|
||||||
|
|
Loading…
Reference in a new issue