summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c5c3fc9)
raw | patch | inline | side by side (parent: c5c3fc9)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 12 Feb 2007 06:05:36 +0000 (22:05 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 12 Feb 2007 06:05:36 +0000 (22:05 -0800) |
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: Junio C Hamano <junkio@cox.net>
use -p which is more in line with the underlying git-apply.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-am.txt | patch | blob | history | |
git-am.sh | patch | blob | history |
index 77ef103b21ed7c8864cf05c08efe3ae562357f55..4fb1d844133ba8350361ee67d074935805a24156 100644 (file)
--- a/Documentation/git-am.txt
+++ b/Documentation/git-am.txt
--------
[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
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::
diff --git a/git-am.sh b/git-am.sh
index 9a6123437ea092069fc2c0c29349252f31efd496..6db9cb503a2717d0c45ee40e262747cbeba3ad17 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
# 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
--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=*)