# git --prune --aggresive

3 messages from 2007-11-23 to 2007-11-23. Participants: Jakub Narebski, Matthieu Moy.
Thread: https://gitlist.dev/t/10990

## Jakub Narebski, 2007-11-23 09:58

Subject: git --prune --aggresive
Message-ID: <200711231058.46578.jnareb@gmail.com>
URL: https://gitlist.dev/e/200711231058.46578.jnareb%40gmail.com

```
2396:[gitweb/web@git]# git gc --aggresive --prune
usage: git-gc [--prune] [--aggressive]
2397:[gitweb/web@git]# git gc --prune --aggresive
usage: git-gc [--prune] [--aggressive]
2398:[gitweb/web@git]# git --version
git version 1.5.3.5

Either usage string should be fixed, as it suggests that you can specify 
both --aggresive and --prune, or git-gc should.

-- 
Jakub Narebski
Poland

```

## Jakub Narebski, 2007-11-23 10:08

Subject: Re: git --prune --aggresive
Message-ID: <200711231108.16676.jnareb@gmail.com>
URL: https://gitlist.dev/e/200711231108.16676.jnareb%40gmail.com
In-Reply-To: <200711231058.46578.jnareb@gmail.com>

```
Jakub Narebski wrote:

> 2396:[gitweb/web@git]# git gc --aggresive --prune
> usage: git-gc [--prune] [--aggressive]
> 2397:[gitweb/web@git]# git gc --prune --aggresive
> usage: git-gc [--prune] [--aggressive]
> 2398:[gitweb/web@git]# git --version
> git version 1.5.3.5
> 
> Either usage string should be fixed, as it suggests that you can specify 
> both --aggresive and --prune, or git-gc should.

I'm very sorry, my mistake: --aggresive instead of --aggressive.
Please disregard this message...

-- 
Jakub Narebski
Poland

```

## Matthieu Moy, 2007-11-23 11:15

Subject: Re: git --prune --aggresive
Message-ID: <vpq3auxxleh.fsf@bauges.imag.fr>
URL: https://gitlist.dev/e/vpq3auxxleh.fsf%40bauges.imag.fr
In-Reply-To: <200711231108.16676.jnareb@gmail.com>

```
Jakub Narebski <jnareb@gmail.com> writes:

> Jakub Narebski wrote:
>
>> 2396:[gitweb/web@git]# git gc --aggresive --prune
>> usage: git-gc [--prune] [--aggressive]
>> 2397:[gitweb/web@git]# git gc --prune --aggresive
>> usage: git-gc [--prune] [--aggressive]
>> 2398:[gitweb/web@git]# git --version
>> git version 1.5.3.5
>> 
>> Either usage string should be fixed, as it suggests that you can specify 
>> both --aggresive and --prune, or git-gc should.
>
> I'm very sorry, my mistake: --aggresive instead of --aggressive.
> Please disregard this message...

Now, for the cool thing: with the latest git, I get the following.

$ git gc --aggresive --prune 
error: unknown option `aggresive'       <----- this is what you wanted.
usage: git-gc [options]

    --prune               prune unreferenced objects
    --aggressive          be more thorough (increased runtime)
    --auto                enable auto-gc mode

$ _

Thanks, parse_options.[ch]!

-- 
Matthieu

```
