Re: Repo with only one file

2013-08-09 Thread shawn wilson
On Fri, Aug 9, 2013 at 6:32 AM, Johannes Sixt wrote: > Am 8/9/2013 12:03, schrieb shawn wilson: >> The question still stands though - why is that unassociated commit left >> there? > > Because your command did not remove it. filter-branch does not know that > it is "unassociated" when you ask it

Re: Repo with only one file

2013-08-09 Thread Phil Hord
On Fri, Aug 9, 2013 at 6:03 AM, shawn wilson wrote: > On Fri, Aug 9, 2013 at 2:50 AM, Johannes Sixt wrote: >> Let's check: After running your command above to remove other files, does >> the command >> >>git filter-branch -f HEAD webban.pl >> > > Ahha, no but: > git filter-branch -f HEAD -- w

Re: Repo with only one file

2013-08-09 Thread Johannes Sixt
Am 8/9/2013 12:03, schrieb shawn wilson: > The question still stands though - why is that unassociated commit left there? Because your command did not remove it. filter-branch does not know that it is "unassociated" when you ask it to follow all commits beginning at HEAD. But when you say 'HEAD --

Re: Repo with only one file

2013-08-09 Thread shawn wilson
On Fri, Aug 9, 2013 at 2:50 AM, Johannes Sixt wrote: > Am 8/9/2013 8:33, schrieb shawn wilson: >> On Fri, Aug 9, 2013 at 2:25 AM, Johannes Sixt wrote: >>> Am 8/8/2013 23:11, schrieb Phil Hord: On Wed, Aug 7, 2013 at 5:07 PM, shawn wilson wrote: > On Wed, Aug 7, 2013 at 6:43 AM, Johannes

Re: Repo with only one file

2013-08-08 Thread Johannes Sixt
Am 8/9/2013 8:33, schrieb shawn wilson: > On Fri, Aug 9, 2013 at 2:25 AM, Johannes Sixt wrote: >> Am 8/8/2013 23:11, schrieb Phil Hord: >>> On Wed, Aug 7, 2013 at 5:07 PM, shawn wilson wrote: On Wed, Aug 7, 2013 at 6:43 AM, Johannes Sixt wrote: > Am 8/7/2013 8:24, schrieb shawn wilson:>

Re: Repo with only one file

2013-08-08 Thread shawn wilson
On Fri, Aug 9, 2013 at 2:25 AM, Johannes Sixt wrote: > Am 8/8/2013 23:11, schrieb Phil Hord: >> On Wed, Aug 7, 2013 at 5:07 PM, shawn wilson wrote: >>> On Wed, Aug 7, 2013 at 6:43 AM, Johannes Sixt wrote: Am 8/7/2013 8:24, schrieb shawn wilson:> ... create a repo for one of > these scri

Re: Repo with only one file

2013-08-08 Thread Johannes Sixt
Am 8/8/2013 23:11, schrieb Phil Hord: > On Wed, Aug 7, 2013 at 5:07 PM, shawn wilson wrote: >> On Wed, Aug 7, 2013 at 6:43 AM, Johannes Sixt wrote: >>> Am 8/7/2013 8:24, schrieb shawn wilson:> ... create a repo for one of these scripts and I'd like to keep the commit history. Ok, s

Re: Repo with only one file

2013-08-08 Thread Phil Hord
On Wed, Aug 7, 2013 at 5:07 PM, shawn wilson wrote: > On Wed, Aug 7, 2013 at 6:43 AM, Johannes Sixt wrote: >> Am 8/7/2013 8:24, schrieb shawn wilson:> ... create a repo for one of >>> these scripts and I'd like to keep the commit history. >>> >>> Ok, so: >>> % find -type f ! -iname "webban.pl" |

Re: Repo with only one file

2013-08-07 Thread shawn wilson
On Wed, Aug 7, 2013 at 6:43 AM, Johannes Sixt wrote: > Am 8/7/2013 8:24, schrieb shawn wilson:> ... create a repo for one of >> these scripts and I'd like to keep the commit history. >> >> Ok, so: >> % find -type f ! -iname "webban.pl" | while read f; do git >> filter-branch -f --index-filter "git

Re: Repo with only one file

2013-08-07 Thread Johannes Sixt
Am 8/7/2013 8:24, schrieb shawn wilson:> ... create a repo for one of > these scripts and I'd like to keep the commit history. > > Ok, so: > % find -type f ! -iname "webban.pl" | while read f; do git > filter-branch -f --index-filter "git rm --cached --ignore-unmatch $f" > HEAD ; done > > Which bas

Repo with only one file

2013-08-06 Thread shawn wilson
I started writing this script in a repo I have called misc-scripts where I just keep one off projects and the like (notes, throw away scripts, etc). Well, my boss asked me to create a repo for one of these scripts and I'd like to keep the commit history. Ok, so: % find -type f ! -iname "webban.pl"