Avoid multiple signoffs
[ugit.git] / py / ugitmodel.py
blob730a5dda09979f996eb35b0ba60b676de93258f5
1 from commands import getoutput
2 from model import Model
3 def get_config(key):
4 return getoutput('git config --get "%s"' % key)
5 class GitModel(Model):
6 def __init__(self): Model.__init__(self, {
7 'commitmsg': '',
8 'staged': [],
9 'unstaged': [],
10 'name': get_config('user.name'),
11 'email': get_config('user.email'),