git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] am: Pass exclude and include args to apply

From
maximilian attems <max@stro.at>
Date
Mar 22, 2010, 04:39 UTC
Message-ID
<1269232780-25314-1-git-send-email-max@stro.at>

I had to port patches from dash git to klibc git, where dash has a different directory structure.

Exported with format-patch on one side and used am for the other side. There this switches came in handy.

Signed-off-by: maximilian attems <max@stro.at>
---
 git-am.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/git-am.sh b/git-am.sh
index 50a292a..fc2f862 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -22,6 +22,8 @@ whitespace=     pass it through git-apply
 ignore-space-change pass it through git-apply
 ignore-whitespace pass it through git-apply
 directory=      pass it through git-apply
+exclude=        pass it through git-apply
+include=        pass it through git-apply
 C=              pass it through git-apply
 p=              pass it through git-apply
 patch-format=   format the patch(es) are in
@@ -339,7 +341,7 @@ do
 		;;
 	--resolvemsg)
 		shift; resolvemsg=$1 ;;
-	--whitespace|--directory)
+	--whitespace|--directory|--exclude|--include)
 		git_apply_opt="$git_apply_opt $(sq "$1=$2")"; shift ;;
 	-C|-p)
 		git_apply_opt="$git_apply_opt $(sq "$1$2")"; shift ;;
-- 
1.7.0.2
Message 1 of 1 in “am: Pass exclude and include args to apply”
  1. am: Pass exclude and include args to applymaximilian attems, Mar 22, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.