Skip to content

Commit d8308c7

Browse files
committed
Merge branch 'ma/am-exclude'
* ma/am-exclude: am: Document new --exclude=<path> option am: pass exclude down to apply
2 parents 7c10882 + 2ae7345 commit d8308c7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Documentation/git-am.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ SYNOPSIS
1313
[--3way] [--interactive] [--committer-date-is-author-date]
1414
[--ignore-date] [--ignore-space-change | --ignore-whitespace]
1515
[--whitespace=<option>] [-C<n>] [-p<n>] [--directory=<dir>]
16-
[--reject] [-q | --quiet] [--scissors | --no-scissors]
16+
[--exclude=<path>] [--reject] [-q | --quiet]
17+
[--scissors | --no-scissors]
1718
[(<mbox> | <Maildir>)...]
1819
'git am' (--continue | --skip | --abort)
1920

@@ -87,6 +88,7 @@ default. You can use `--no-utf8` to override this.
8788
-C<n>::
8889
-p<n>::
8990
--directory=<dir>::
91+
--exclude=<path>::
9092
--reject::
9193
These flags are passed to the 'git apply' (see linkgit:git-apply[1])
9294
program that applies

git-am.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ whitespace= pass it through git-apply
2222
ignore-space-change pass it through git-apply
2323
ignore-whitespace pass it through git-apply
2424
directory= pass it through git-apply
25+
exclude= pass it through git-apply
2526
C= pass it through git-apply
2627
p= pass it through git-apply
2728
patch-format= format the patch(es) are in
@@ -366,7 +367,7 @@ do
366367
;;
367368
--resolvemsg)
368369
shift; resolvemsg=$1 ;;
369-
--whitespace|--directory)
370+
--whitespace|--directory|--exclude)
370371
git_apply_opt="$git_apply_opt $(sq "$1=$2")"; shift ;;
371372
-C|-p)
372373
git_apply_opt="$git_apply_opt $(sq "$1$2")"; shift ;;

0 commit comments

Comments
 (0)