textmate/textmate — pull request #298 by nanoant (2012-08-26 21:24:06+00:00)
Title: Set `TM_SCM_BRANCH` even for untitled document if possible

It also **reloads window title on activate** (i.e. branch can be switched from console or other app), which is pretty substantial fix. Finally it adds `TM_SCM_NAME` variable.

Purpose of this commit is to see project / repo branch name when `$TM_SCM_BRANCH` is used in `windowTitle` when working on untitled document or opening some SCM managed folder. Without this change it does only display `untitled` and nothing else, so we need existing file open to see SCM branch.