git.py: use a dispatcher to allow for more dynamism
commitb9b8d1b522009d9028749743c3046c564cbde918
authorDavid Aguilar <davvid@gmail.com>
Fri, 4 Apr 2008 10:40:58 +0000 (4 03:40 -0700)
committerDavid Aguilar <davvid@gmail.com>
Fri, 4 Apr 2008 10:40:58 +0000 (4 03:40 -0700)
treeea1cca3ebc34bf0850583427ea218eeb282cb4ec
parenta319f866c91264800200d00d8e5f65b0ea3804ce
git.py: use a dispatcher to allow for more dynamism

The goal of these changes is to allow runtime creation
of arbitrary git commands.  e.g. git.branch() should
return the output of "git branch."  We do this by
using a module dispatcher/__getattr__ to intersept
attributes.  Eventually, the git.py module should
be very tiny as the hand-coded methods are
phased out.

Signed-off-by: David Aguilar <davvid@gmail.com>
ugit/git.py
ugit/models.py
ugit/utils.py