git_id() is more flexible since it knows about StGIT patches.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
bottom = crt_patch.get_bottom()
git.apply_patch(filename, bottom)
elif options.base:
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)
else:
git.apply_patch(filename)
sys.stdout.flush()
if options.base:
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)
else:
git.apply_patch(filename)