Git : Add gv to get version number based on commit count.
This commit is contained in:
parent
2b5939afdf
commit
424519e722
|
@ -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
|
||||
|
|
Reference in a new issue