add detached head lookup
Merge pull request #1 from katanastabstudios/feature/detached_head

add detached head lookup