{"thread":{"id":"8880","subject":"[PATCH] filter-branch documentation: clarify which filters are eval'ed","startedAt":"2007-07-05T16:07:48Z","lastAt":"2007-07-05T16:07:48Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"46552","messageId":"Pine.LNX.4.64.0707051704520.9789@racer.site","threadId":"8880","inReplyTo":null,"subject":"[PATCH] filter-branch documentation: clarify which filters are eval'ed","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-07-05T16:07:48Z","receivedAt":"2007-07-05T16:07:48Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nAll filters, except the commit filter, are evaluated.\n\nSigned-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>\n---\n\n\tI tried to extract the magic of the \"remove commit\" example into a \n\tfunction \"skip_commit\", since I guess it will be a common \n\toperation. Alas, since the commit filter has to be \"sh -c\"ed to \n\tget arguments, I do not see any way to use a convenience function \n\tin there, short of sourcing a helper file. Does anybody see a \n\tbetter way?\n\n Documentation/git-filter-branch.txt |    3 ++-\n 1 files changed, 2 insertions(+), 1 deletions(-)\n\ndiff --git a/Documentation/git-filter-branch.txt b/Documentation/git-filter-branch.txt\nindex 219a81d..eaea82d 100644\n--- a/Documentation/git-filter-branch.txt\n+++ b/Documentation/git-filter-branch.txt\n@@ -50,7 +50,8 @@ Filters\n ~~~~~~~\n \n The filters are applied in the order as listed below.  The <command>\n-argument is always evaluated in shell using the 'eval' command.\n+argument is always evaluated in shell using the 'eval' command (with the\n+notable exception of the commit filter, for technical reasons).\n Prior to that, the $GIT_COMMIT environment variable will be set to contain\n the id of the commit being rewritten.  Also, GIT_AUTHOR_NAME,\n GIT_AUTHOR_EMAIL, GIT_AUTHOR_DATE, GIT_COMMITTER_NAME, GIT_COMMITTER_EMAIL,\n-- \n1.5.3.rc0.2689.g99ca2-dirty\n"}]}