Python script for automatic synchronization based on inotify

martin f krafft madduck at
Wed Mar 23 08:00:27 CET 2011

also sprach Dieter Plaetinck <dieter at> [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.
spamtraps: madduck.bogus at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 1124 bytes
Desc: Digital signature (see
URL: <>

More information about the vcs-home mailing list