It is related to Making git show to show information in a machine parseable format but I am getting tired of the fact that I now have to do a lot of parsing to get the commi
just a guess: try "git show --pretty=format:"%H" --quiet mylabel"