repo.or.cz
/
ugit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Avoid multiple signoffs
[ugit.git]
/
py
/
ugitmodel.py
blob
730a5dda09979f996eb35b0ba60b676de93258f5
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'
),
12
})
13
14