X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/2f7c8b0ba410854dc7dd0c2282323cc04dfcce8e..8ebae56bad042edf75f7d290469fea166a20d045:/stgit/commands/files.py diff --git a/stgit/commands/files.py b/stgit/commands/files.py index d81bc25..b33bd2a 100644 --- a/stgit/commands/files.py +++ b/stgit/commands/files.py @@ -37,7 +37,10 @@ options = [make_option('-s', '--stat', help = 'show the diff stat', action = 'store_true'), make_option('-b', '--branch', - help = 'use BRANCH instead of the default one')] + help = 'use BRANCH instead of the default one'), + make_option('--bare', + help = 'bare file names (useful for scripting)', + action = 'store_true')] def func(parser, options, args): @@ -50,10 +53,12 @@ def func(parser, options, args): else: parser.error('incorrect number of arguments') - rev1 = git_id('%s/bottom' % patch) - rev2 = git_id('%s/top' % patch) + rev1 = git_id('%s//bottom' % patch) + rev2 = git_id('%s//top' % patch) if options.stat: print git.diffstat(rev1 = rev1, rev2 = rev2) + elif options.bare: + print git.barefiles(rev1, rev2) else: print git.files(rev1, rev2)