mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 20:54:34 +00:00
Add git total-files and tracked-files
This commit is contained in:
parent
b017d2b67e
commit
8fa29912a9
|
@ -63,8 +63,10 @@
|
|||
find-merge = "!sh -c 'commit=$0 && branch=${1:-HEAD} && (git rev-list $commit..$branch --ancestry-path | cat -n; git rev-list $commit..$branch --first-parent | cat -n) | sort -k2 -s | uniq -f1 -d | sort -n | tail -1 | cut -f2'"
|
||||
show-merge = "!sh -c 'merge=$(git find-merge $0 $1) && [ -n \"$merge\" ] && git show $merge'"
|
||||
|
||||
tracked-files = "ls-tree --full-tree --name-only -r HEAD"
|
||||
total-lines = "!git tracked-files | xargs cat | wc -l"
|
||||
total-files = "!git tracked-files | wc -l"
|
||||
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-tree --full-tree --name-only -r HEAD | xargs cat | wc -l"
|
||||
[credential]
|
||||
helper = store --file ~/.config/git/git-credentials
|
||||
[core]
|
||||
|
|
Loading…
Reference in a new issue