From f73aeed63821f211efe8f09ee7285122efee2886 Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Wed, 30 Sep 2009 21:50:14 +0100 Subject: [PATCH] Allow 'stg diff ..' If the first part of the range is missing, stgit was not assuming HEAD. Signed-off-by: Catalin Marinas --- stgit/commands/diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.11.0