{"thread":{"id":"43808","subject":"[PATCH] Add test for filter-branch on a subdirectory that's been added and deleted and re-added","startedAt":"2008-02-25T19:45:18Z","lastAt":"2008-02-25T19:45:18Z","messageCount":1,"participants":["Kevin Ballard"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"299030","messageId":"1203968718-88226-1-git-send-email-kevin@sb.org","threadId":"43808","inReplyTo":null,"subject":"[PATCH] Add test for filter-branch on a subdirectory that's been added and deleted and re-added","fromName":"Kevin Ballard","fromEmail":"kevin@sb.org","sentAt":"2008-02-25T19:45:18Z","receivedAt":"2008-02-25T19:45:18Z","isPatch":true,"sender":{"key":"kevin@sb.org","avatar":"https://avatars.githubusercontent.com/u/714?v=4"},"body":"---\n t/t7003-filter-branch.sh |   13 +++++++++++++\n 1 files changed, 13 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t7003-filter-branch.sh b/t/t7003-filter-branch.sh\nindex 868babc..9972343 100755\n--- a/t/t7003-filter-branch.sh\n+++ b/t/t7003-filter-branch.sh\n@@ -179,4 +179,17 @@ test_expect_success 'Name needing quotes' '\n \n '\n \n+test_expect_success 'Subdirectory filter on non-contiguous folder' '\n+\tmkdir foo &&\n+\ttouch foo/bar &&\n+\tgit add foo &&\n+\tgit commit -m \"Adding foo\" &&\n+\tgit rm -r foo &&\n+\tgit commit -m \"Removing foo\" &&\n+\tmkdir foo &&\n+\ttouch foo/bar &&\n+\tgit commit -m \"Re-adding foo\" &&\n+\tgit filter-branch --subdirectory-filter foo\n+'\n+\n test_done\n-- \n1.5.4.3.222.gb0bf5\n\n"}]}