also sprach Dieter Plaetinck <> [2011.03.20.1235 +0100]:
> oh, one more thing.
> you can query the current branch in a pure-python way, by reading .git/HEAD

No, please do not use this. Use

  git symbolic-ref -q HEAD || git name-rev --name-only HEAD

martin | |
sex an und für sich ist reine selbstbefriedigung.

Attachment: digital_signature_gpg.asc
Description: Digital signature (see

vcs-home mailing list

Reply via email to