Document branch name extraction