hg_current_branch added to mercurial plugin
This commit is contained in:
parent
5193a1dbc9
commit
51e05b7579
@ -12,3 +12,9 @@ alias hgp='hg push'
|
|||||||
alias hgs='hg status'
|
alias hgs='hg status'
|
||||||
# this is the 'git commit --amend' equivalent
|
# this is the 'git commit --amend' equivalent
|
||||||
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
|
alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
|
||||||
|
|
||||||
|
function hg_current_branch() {
|
||||||
|
if [ -d .hg ]; then
|
||||||
|
echo hg:$(hg branch)
|
||||||
|
fi
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user