Git : Add gv to get version number based on commit count.

This commit is contained in:
Dmitry Voronin 2024-02-15 17:52:26 +03:00
parent 2b5939afdf
commit 424519e722

View file

@ -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