Python script for automatic synchronization based on inotify

Felix Kaiser felix.kaiser at
Wed Mar 23 12:50:05 CET 2011

On Wed, Mar 23, 2011 at 11:50 AM, martin f krafft <madduck at> wrote:
> also sprach Dieter Plaetinck <dieter at> [2011.03.23.0933 +0100]:
> > well, the idea behind doing it in pure-python is removing the
> > overhead of spawning extra processes, do you have an argument why
> > reading the branchname of the current HEAD in a few lines of
> > python is bad?
> .git/* is not a public API. It's considered internal.

Not its not.

Its even documented[1]: "... a valid git repository must have the HEAD
file; some porcelains may use it to guess the designated "default"
branch of the repository (usually master)."

(dvcs-autosync is such a porcelain)



More information about the vcs-home mailing list