# StGit patchname numeric prefix?

3 messages from 2007-04-03 to 2007-04-03. Participants: Jamie Border, Catalin Marinas.
Thread: https://gitlist.dev/t/7501

## Jamie Border, 2007-04-03 11:49

Subject: StGit patchname numeric prefix?
Message-ID: <87odm5r833.fsf@gmail.com>
URL: https://gitlist.dev/e/87odm5r833.fsf%40gmail.com

```
Hello.

Is there a switch to have stgit prepend a numeric prefix to the patch name?

I'm trying to stg uncommit -n <large_number> from a repository, and due to the excellent log messages, half of the patches get called 'empty-log-message'.

I'm sure when I played with stg a while ago I found a switch to do that.

I'm probably wrong, though.

Cheers

Jamie

```

## Catalin Marinas, 2007-04-03 14:37

Subject: Re: StGit patchname numeric prefix?
Message-ID: <tnx648d5xs9.fsf@arm.com>
URL: https://gitlist.dev/e/tnx648d5xs9.fsf%40arm.com
In-Reply-To: <87odm5r833.fsf@gmail.com>

```
Jamie Border <jborder@gmail.com> wrote:
> Is there a switch to have stgit prepend a numeric prefix to the
> patch name?
>
> I'm trying to stg uncommit -n <large_number> from a repository, and
> due to the excellent log messages, half of the patches get called
> 'empty-log-message'.
>
> I'm sure when I played with stg a while ago I found a switch to do
> that.

It automatically adds a suffix if a patch with the same name already
exists, i.e. empty-log-message-0, -1, ..., -n. No extra switch is
needed.

What StGIT version are you using?

-- 
Catalin

```

## Jamie Border, 2007-04-03 15:31

Subject: Re: StGit patchname numeric prefix?
Message-ID: <874pnxqxsj.fsf@gmail.com>
URL: https://gitlist.dev/e/874pnxqxsj.fsf%40gmail.com
In-Reply-To: <tnx648d5xs9.fsf@arm.com>

```
Catalin Marinas <catalin.marinas@arm.com> writes:

> Jamie Border <jborder@gmail.com> wrote:
>> Is there a switch to have stgit prepend a numeric prefix to the
>> patch name?
>>
>> I'm trying to stg uncommit -n <large_number> from a repository, and
>> due to the excellent log messages, half of the patches get called
>> 'empty-log-message'.
>>
>> I'm sure when I played with stg a while ago I found a switch to do
>> that.
>
> It automatically adds a suffix if a patch with the same name already
> exists, i.e. empty-log-message-0, -1, ..., -n. No extra switch is
> needed.
>
> What StGIT version are you using?

0.11, which doesn't do that <g>.

Just changed to 0.12, which works great.

Many thanks, saved me hours and hours :-)

Jamie

>
> -- 
> Catalin

```
