~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make stgit.config use git-repo-config.
[stgit]
/
stgit
/
commands
/
series.py
diff --git
a/stgit/commands/series.py
b/stgit/commands/series.py
index
4f372ff
..
31ce5cb
100644
(file)
--- a/
stgit/commands/series.py
+++ b/
stgit/commands/series.py
@@
-135,10
+135,11
@@
def func(parser, options, args):
unapplied = [p for p in unapplied if p in show_patches]
if options.short:
unapplied = [p for p in unapplied if p in show_patches]
if options.short:
- if len(applied) > 5:
- applied = applied[-6:]
- if len(unapplied) > 5:
- unapplied = unapplied[:5]
+ nr = int(config.get('stgit.shortnr'))
+ if len(applied) > nr:
+ applied = applied[-(nr+1):]
+ if len(unapplied) > nr:
+ unapplied = unapplied[:nr]
patches = applied + unapplied
patches = applied + unapplied