summaryrefslogtreecommitdiff
path: root/zshfunc/vcs-info/VCS_INFO_tla_get_data
blob: 130ac77e9a94729702807295f16293421edb6b07 (plain)
1
2
3
4
5
6
7
8
9
VCS_INFO_tla_get_data () { # {{{
    local tlabase tlabranch

    tlabase="$(VCS_INFO_realpath ${vcs_comm[basedir]})"
    # tree-id gives us something like 'foo@example.com/demo--1.0--patch-4', so:
    tlabranch=${${"$( tla tree-id )"}/*\//}
    VCS_INFO_formats '' "${tlabranch}" "${tlabase}"
    return 0
}