threads / discuss / 13675

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

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

## tl;dr

4 messages between May 26, 2008 and May 29, 2008.

replies: 3people: 2as markdown or json

Dirk Süsserott· May 26, 2008, 19:31 UTC · lore
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· May 26, 2008, 21:33 UTC · re: Dirk Süsserott · lore

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

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· May 27, 2008, 20:57 UTC · re: Johannes Schindelin · lore

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

Johannes Schindelin schrieb:
Show 13 quoted lines
> 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· May 29, 2008, 13:15 UTC · re: Dirk Süsserott · lore

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

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

← back to recent threads