In git detached HEAD state, use branch string "NO-BRANCH" instead of cumbersome "(no branch)"