chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make "stg files" output match "quilt files" one
[stgit]
/
stgit
/
commands
/
files.py
diff --git
a/stgit/commands/files.py
b/stgit/commands/files.py
index d81bc25affa92dbf2c65a98b2a34d384dd17ec60..4b44f729cbef206d0f7c5297aae2013458828c77 100644
(file)
--- a/
stgit/commands/files.py
+++ b/
stgit/commands/files.py
@@
-38,6
+38,10
@@
options = [make_option('-s', '--stat',
action = 'store_true'),
make_option('-b', '--branch',
help = 'use BRANCH instead of the default one')]
action = 'store_true'),
make_option('-b', '--branch',
help = 'use BRANCH instead of the default one')]
+ action = 'store_true'),
+ make_option('--bare',
+ help = 'bare file names (useful for scripting)',
+ action = 'store_true')]
def func(parser, options, args):
def func(parser, options, args):
@@
-55,5
+59,7
@@
def func(parser, options, args):
if options.stat:
print git.diffstat(rev1 = rev1, rev2 = rev2)
if options.stat:
print git.diffstat(rev1 = rev1, rev2 = rev2)
+ elif options.bare:
+ print git.barefiles(rev1, rev2)
else:
print git.files(rev1, rev2)
else:
print git.files(rev1, rev2)