We can choose the last line like this:
```
head="$(git rev-parse HEAD)" tag="$(git tag --points-at $head)" ; echo "${tag:-$head}\c" | tail -1
```

Any other suggestions?