From: Catalin Marinas Date: Wed, 30 Sep 2009 20:50:14 +0000 (+0100) Subject: Allow 'stg diff ..' X-Git-Tag: v0.15-rc4~7 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/f73aeed63821f211efe8f09ee7285122efee2886 Allow 'stg diff ..' If the first part of the range is missing, stgit was not assuming HEAD. Signed-off-by: Catalin Marinas --- diff --git a/stgit/commands/diff.py b/stgit/commands/diff.py index a6cd013..631e42d 100644 --- a/stgit/commands/diff.py +++ b/stgit/commands/diff.py @@ -70,7 +70,7 @@ def func(parser, options, args): if not options.stat: options.diff_flags.extend(color_diff_flags()) - diff_str = git.diff(args, git_id(crt_series, rev1), + diff_str = git.diff(args, rev1 and git_id(crt_series, rev1), rev2 and git_id(crt_series, rev2), diff_flags = options.diff_flags) if options.stat: