All, Running git-filter-branch --tree-filter 'rm -rf subdir/' -- --all as shown below seems to leave empty commits corresponding to subdir/ in the tree. Is this the expected behavior? If so is there a command to remove the empty commits? Using git-rebase -i to edit the commit history works, but is a bit tedious on a large tree. Many thanks! Cheers, David ***** ***** ***** ***** ***** mkdir test-filter-branch cd test-filter-branch echo 'base1' > base.txt mkdir subdir echo 'sub1' > subdir/sub.txt git-init git-add . git-commit -a -m "Commit 1" echo 'base2' >> base.txt git-commit -a -m "Commit 2" echo 'sub3' > subdir/sub.txt git-commit -a -m "Commit 3" echo 'base4' >> base.txt echo 'sub4' > subdir/sub.txt git-commit -a -m "Commit 4" git-filter-branch --tree-filter 'rm -rf subdir/' -- --all gitk & -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Andi Kleen | [PATCH x86] [0/16] Various i386/x86-64 changes |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Linus Torvalds | Re: [GIT]: Networking |
| Jeff Kirsher | [net-next PATCH 1/7] e1000e: enable CRC stripping by default |
| Jukka Andberg | ata/wdc vs gcc3 on amiga |
| YAMAMOTO Takashi | Re: wd.c patch to reduce kernel stack usage |
| Jason Thorpe | Re: ksyms patches. |
| rick | NFS transport |
