about summary refs log tree commit diff
path: root/Functions/VCS_Info/Backends/VCS_INFO_get_data_tla
blob: 4e9cee8b9ce4167050548b71d7f2ff98b839a932 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
## vim:ft=zsh
## gnu arch support by: Frank Terbeck <ft@bewatermyfriend.org>
## Distributed under the same BSD-ish license as zsh itself.

setopt localoptions extendedglob NO_shwordsplit
local tlabase tlabranch

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