olivierverdier/zsh-git-prompt — Issue #3: non-branch commitish doesn't work
Author: sunaku
Created: 2011-10-19 07:39:18+00:00
State: open

The following advertised example doesn't work:
> (:70c2952): not on any branch; parent commit has sha1 70c2952

Observe:

```
(master|✔)~/.zsh-git-prompt> git checkout HEAD\^
Note: checking out 'HEAD^'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b new_branch_name

HEAD is now at d8cc0aa... more readable presentation of the output
~/.zsh-git-prompt>
```

I'm using this repo at c6032a64aaaa4dd45216eda8102fea61b0a5933a with zsh 4.3.12 (x86_64-unknown-linux-gnu) and Python 2.7.2. Thanks.