# msysGit: "git filter-branch --subdirectory-filter" doesn't work at all

4 messages from 2008-05-26 to 2008-05-29. Participants: Dirk Süsserott, Johannes Schindelin.
Thread: https://gitlist.dev/t/13675

## Dirk Süsserott, 2008-05-26 19:31

Subject: msysGit: "git filter-branch --subdirectory-filter" doesn't work at all
Message-ID: <483B0FF8.6070700@dirk.my1.cc>
URL: https://gitlist.dev/e/483B0FF8.6070700%40dirk.my1.cc

```
I'm using msysGit 1.5.5.1015.g9d258 (the latest). When I try

$ git filter-branch --subdirectory-filter perl

in my git.git repo it only says

Usage: C:/Programme/Git/bin/git-filter-branch ... [--subdirectory-filter 
<directory>] ...

I.e. git-filter-branch doesn't work at all under msysGit. No matter
what other switches I give. The answer is always only the usage
information. Is this a known issue or am I doing sth. wrong?

Not that I currently have any application for git-filter-branch,
I'm just curious.

    Dirk

```

## Johannes Schindelin, 2008-05-26 21:33

Subject: Re: msysGit: "git filter-branch --subdirectory-filter" doesn't work at all
Message-ID: <alpine.DEB.1.00.0805262233190.30431@racer>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0805262233190.30431%40racer
In-Reply-To: <483B0FF8.6070700@dirk.my1.cc>

```
Hi,

On Mon, 26 May 2008, Dirk Süsserott wrote:

> $ git filter-branch --subdirectory-filter perl

And what branch, exactly, do you want to rewrite?  You did not specify 
_any_ branch here.

Ciao,
Dscho
```

## Dirk Süsserott, 2008-05-27 20:57

Subject: Re: msysGit: "git filter-branch --subdirectory-filter" doesn't work at all
Message-ID: <483C75AD.5080206@dirk.my1.cc>
URL: https://gitlist.dev/e/483C75AD.5080206%40dirk.my1.cc
In-Reply-To: <alpine.DEB.1.00.0805262233190.30431@racer>

```
Johannes Schindelin schrieb:
> Hi,
>
> On Mon, 26 May 2008, Dirk Süsserott wrote:
>
>   
>> $ git filter-branch --subdirectory-filter perl
>>     
>
> And what branch, exactly, do you want to rewrite?  You did not specify 
> _any_ branch here.
>
> Ciao,
> Dscho
Hi,

thanks, that helped a lot. As said, I've no
actual use case for git-filter-branch but was just curious
about the usage. So this wasn't an issue with msysGit or
Windows, even though I thought that at first glance.

As I noticed from one of your replies to the
'Commit cce8d6fdb introduces...' thread, you seem to be
somewhat annoyed by people asking for Windows compatibility.
That was not the case here, I just wanted to state that. ;-)

To my opinion the --subdirectory-filter switch isn't documented
very well. When I find out and have an example, I'll post it.

    Dirk

```

## Johannes Schindelin, 2008-05-29 13:15

Subject: Re: msysGit: "git filter-branch --subdirectory-filter" doesn't work at all
Message-ID: <alpine.DEB.1.00.0805291414160.13507@racer.site.net>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0805291414160.13507%40racer.site.net
In-Reply-To: <483C75AD.5080206@dirk.my1.cc>

```
Hi,

On Tue, 27 May 2008, Dirk Süsserott wrote:

> As I noticed from one of your replies to the 'Commit cce8d6fdb 
> introduces...' thread, you seem to be somewhat annoyed by people asking 
> for Windows compatibility. That was not the case here, I just wanted to 
> state that. ;-)

Heh.  I am not annoyed because of the Windows compatibility.  I am annoyed 
by people not itching their scratch; Git's source code is clean enough 
that just about any coder can fix their pet bug.

> To my opinion the --subdirectory-filter switch isn't documented very 
> well. When I find out and have an example, I'll post it.

Thanks,
Dscho

```
