from stgit import stack, git
help = 'show the tree diff'
from stgit import stack, git
help = 'show the tree diff'
Show the diff (default) or diffstat between the current working copy
or a tree-ish object and another tree-ish object. File names can also
Show the diff (default) or diffstat between the current working copy
or a tree-ish object and another tree-ish object. File names can also
If neither bottom nor top are given but a '//' is present, the command
shows the specified patch (defaulting to the current one)."""
If neither bottom nor top are given but a '//' is present, the command
shows the specified patch (defaulting to the current one)."""
options = [make_option('-r', '--range',
metavar = 'rev1[..[rev2]]', dest = 'revs',
help = 'show the diff between revisions'),
options = [make_option('-r', '--range',
metavar = 'rev1[..[rev2]]', dest = 'revs',
help = 'show the diff between revisions'),
make_option('-s', '--stat',
help = 'show the stat instead of the diff',
make_option('-s', '--stat',
help = 'show the stat instead of the diff',
- if options.diff_opts:
- diff_flags = options.diff_opts.split()
- else:
- diff_flags = []
-
+ diff_str = git.diff(args, git_id(crt_series, rev1),
+ git_id(crt_series, rev2),
+ diff_flags = options.diff_flags)