{"thread":{"id":"28006","subject":"[PATCH] am: pass exclude down to apply","startedAt":"2011-08-03T09:37:29Z","lastAt":"2011-08-03T09:37:29Z","messageCount":1,"participants":["maximilian attems"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"172739","messageId":"1312364249-1439-1-git-send-email-max@stro.at","threadId":"28006","inReplyTo":null,"subject":"[PATCH] am: pass exclude down to apply","fromName":"maximilian attems","fromEmail":"max@stro.at","sentAt":"2011-08-03T09:37:29Z","receivedAt":"2011-08-03T09:37:29Z","isPatch":true,"sender":{"key":"max@stro.at","avatar":"https://avatars.githubusercontent.com/u/1266461?v=4"},"body":"This allows to pass patches around from repositories,\nwhere the other repository doesn't feature certain files.\n\nIn the special case this works for dash git sync to klibc dash:\n git am --directory=\"usr/dash\" --exclude=\"usr/dash/configure.ac\" \\\n        --exclude=\"usr/dash/ChangeLog\" --exclude=\"usr/dash/dash.1\" \\\n\t.. -i -s -k ../dash/000X-foo.patch\n\nSigned-off-by: maximilian attems <max@stro.at>\n---\n git-am.sh |    3 ++-\n 1 files changed, 2 insertions(+), 1 deletions(-)\n\nThis is a resent, haven't a test for this usecase,\nbut it is useful and simple enough, so reposted.\n\ndiff --git a/git-am.sh b/git-am.sh\nindex 463c741..8d185aa 100755\n--- a/git-am.sh\n+++ b/git-am.sh\n@@ -22,6 +22,7 @@ whitespace=     pass it through git-apply\n ignore-space-change pass it through git-apply\n ignore-whitespace pass it through git-apply\n directory=      pass it through git-apply\n+exclude=        pass it through git-apply\n C=              pass it through git-apply\n p=              pass it through git-apply\n patch-format=   format the patch(es) are in\n@@ -366,7 +367,7 @@ do\n \t\t;;\n \t--resolvemsg)\n \t\tshift; resolvemsg=$1 ;;\n-\t--whitespace|--directory)\n+\t--whitespace|--directory|--exclude)\n \t\tgit_apply_opt=\"$git_apply_opt $(sq \"$1=$2\")\"; shift ;;\n \t-C|-p)\n \t\tgit_apply_opt=\"$git_apply_opt $(sq \"$1$2\")\"; shift ;;\n-- \n1.7.5.4\n"}]}