diff --git a/.config/bash/module/Git.sh b/.config/bash/module/Git.sh index dbff9bb..096c8ad 100644 --- a/.config/bash/module/Git.sh +++ b/.config/bash/module/Git.sh @@ -167,6 +167,11 @@ function gdc() { git diff "${1}^!" } +# Get version number based on commit count. +function gv() { + git rev-list HEAD --count +} + # Show current branch. function _git_current_branch() { git branch --show-current 2> /dev/null