From: Catalin Marinas Date: Thu, 6 Oct 2005 09:57:17 +0000 (+0100) Subject: Use git_id in import and fold instead of git.rev_parse X-Git-Tag: v0.8~74 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/be3e6bd9308ad0b1cae54bd8ff9502bcf7713129 Use git_id in import and fold instead of git.rev_parse git_id() is more flexible since it knows about StGIT patches. Signed-off-by: Catalin Marinas --- diff --git a/stgit/commands/fold.py b/stgit/commands/fold.py index 963c196..a9bb7fa 100644 --- a/stgit/commands/fold.py +++ b/stgit/commands/fold.py @@ -70,7 +70,7 @@ def func(parser, options, args): bottom = crt_patch.get_bottom() git.apply_patch(filename, bottom) elif options.base: - git.apply_patch(filename, git.rev_parse(options.base)) + git.apply_patch(filename, git_id(options.base)) else: git.apply_patch(filename) diff --git a/stgit/commands/imprt.py b/stgit/commands/imprt.py index 96ba0a1..f8970af 100644 --- a/stgit/commands/imprt.py +++ b/stgit/commands/imprt.py @@ -220,7 +220,7 @@ def func(parser, options, args): sys.stdout.flush() if options.base: - git.apply_patch(filename, git.rev_parse(options.base)) + git.apply_patch(filename, git_id(options.base)) else: git.apply_patch(filename)