diff options
Diffstat (limited to 'zshfunc/vcs-info/VCS_INFO_tla_get_data')
-rw-r--r-- | zshfunc/vcs-info/VCS_INFO_tla_get_data | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/zshfunc/vcs-info/VCS_INFO_tla_get_data b/zshfunc/vcs-info/VCS_INFO_tla_get_data new file mode 100644 index 0000000..130ac77 --- /dev/null +++ b/zshfunc/vcs-info/VCS_INFO_tla_get_data @@ -0,0 +1,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 +} |