提交 2092a1fe 编写于 作者: J Junio C Hamano

Teach git-am to pass -p option down to git-apply

This is originally from Andy Parkins whose patch used --patchdepth; let's
use -p which is more in line with the underlying git-apply.
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 c5c3fc98
......@@ -10,7 +10,8 @@ SYNOPSIS
--------
[verse]
'git-am' [--signoff] [--dotest=<dir>] [--utf8 | --no-utf8] [--binary] [--3way]
[--interactive] [--whitespace=<option>] <mbox>...
[--interactive] [--whitespace=<option>] [-C<n>] [-p<n>]
<mbox>...
'git-am' [--skip | --resolved]
DESCRIPTION
......@@ -68,8 +69,8 @@ default. You could use `--no-utf8` to override this.
This flag is passed to the `git-apply` program that applies
the patch.
-C<n>::
This flag is passed to the `git-apply` program that applies
-C<n>, -p<n>::
These flag are passed to the `git-apply` program that applies
the patch.
--interactive::
......
......@@ -3,7 +3,7 @@
# Copyright (c) 2005, 2006 Junio C Hamano
USAGE='[--signoff] [--dotest=<dir>] [--utf8 | --no-utf8] [--binary] [--3way]
[--interactive] [--whitespace=<option>] [-CNUM] <mbox>...
[--interactive] [--whitespace=<option>] [-C<n>] [-p<n>] <mbox>...
or, when resuming [--skip | --resolved]'
. git-sh-setup
set_reflog_action am
......@@ -142,10 +142,7 @@ do
--sk|--ski|--skip)
skip=t; shift ;;
--whitespace=*)
git_apply_opt="$git_apply_opt $1"; shift ;;
-C*)
--whitespace=*|-C*|-p*)
git_apply_opt="$git_apply_opt $1"; shift ;;
--resolvemsg=*)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册