summaryrefslogtreecommitdiff
path: root/zshfunc/vcs-info/VCS_INFO_mtn_get_data
blob: 1edbb63a7f8ad1b4a117f28360d7d4dc63d2cea1 (plain)
1
2
3
4
5
6
7
8
VCS_INFO_mtn_get_data () { # {{{
    local mtnbranch mtnbase

    mtnbase=${vcs_comm[basedir]}
    mtnbranch=${${(M)${(f)"$( mtn status )"}:#(#s)Current branch:*}/*: /}
    VCS_INFO_formats '' "${mtnbranch}" "${mtnbase}"
    return 0
}