# Why does git-commit --template want the template to be modified ?

4 messages from 2012-10-30 to 2012-10-30. Participants: Francis Moreau, Tomas Carnecky, Johannes Sixt.
Thread: https://gitlist.dev/t/31980

## Francis Moreau, 2012-10-30 10:53

Subject: Why does git-commit --template want the template to be modified ?
Message-ID: <CAC9WiBjeuy8dpSnp5Jq55hs1-CJUzwpH70GZ1ZGOF2dAAeypaw@mail.gmail.com>
URL: https://gitlist.dev/e/CAC9WiBjeuy8dpSnp5Jq55hs1-CJUzwpH70GZ1ZGOF2dAAeypaw%40mail.gmail.com

```
Hi,

I'm using git-commit with the --template option. The template I'm
given is self sufficient for my purpose but as stated in the
documentation, git-commit wants the template to be edited otherwise it
aborts the operation.

Is it possible to change this ?

Thanks
-- 
Francis

```

## Tomas Carnecky, 2012-10-30 11:09

Subject: Re: Why does git-commit --template want the template to be modified ?
Message-ID: <1351595365-ner-1835@calvin>
URL: https://gitlist.dev/e/1351595365-ner-1835%40calvin
In-Reply-To: <CAC9WiBjeuy8dpSnp5Jq55hs1-CJUzwpH70GZ1ZGOF2dAAeypaw@mail.gmail.com>

```
On Tue, 30 Oct 2012 11:53:08 +0100, Francis Moreau <francis.moro@gmail.com> wrote:
> Hi,
> 
> I'm using git-commit with the --template option. The template I'm
> given is self sufficient for my purpose but as stated in the
> documentation, git-commit wants the template to be edited otherwise it
> aborts the operation.
> 
> Is it possible to change this ?

It seems you want -F instead of --template.

```

## Johannes Sixt, 2012-10-30 11:14

Subject: Re: Why does git-commit --template want the template to be modified ?
Message-ID: <508FB694.10506@viscovery.net>
URL: https://gitlist.dev/e/508FB694.10506%40viscovery.net
In-Reply-To: <CAC9WiBjeuy8dpSnp5Jq55hs1-CJUzwpH70GZ1ZGOF2dAAeypaw@mail.gmail.com>

```
Am 10/30/2012 11:53, schrieb Francis Moreau:
> I'm using git-commit with the --template option. The template I'm
> given is self sufficient for my purpose but as stated in the
> documentation, git-commit wants the template to be edited otherwise it
> aborts the operation.
> 
> Is it possible to change this ?

Perhaps you wanted to use --file instead of --template?

-- Hannes

```

## Francis Moreau, 2012-10-30 14:23

Subject: Re: Why does git-commit --template want the template to be modified ?
Message-ID: <CAC9WiBgxZk3pRoj7nuqXdXKHdaHNpx+9h16o5N-vFAGVoH0NMg@mail.gmail.com>
URL: https://gitlist.dev/e/CAC9WiBgxZk3pRoj7nuqXdXKHdaHNpx%2B9h16o5N-vFAGVoH0NMg%40mail.gmail.com
In-Reply-To: <1351595365-ner-1835@calvin>

```
Hi,

On Tue, Oct 30, 2012 at 12:09 PM, Tomas Carnecky
<tomas.carnecky@gmail.com> wrote:
> On Tue, 30 Oct 2012 11:53:08 +0100, Francis Moreau <francis.moro@gmail.com> wrote:
>> Hi,
>>
>> I'm using git-commit with the --template option. The template I'm
>> given is self sufficient for my purpose but as stated in the
>> documentation, git-commit wants the template to be edited otherwise it
>> aborts the operation.
>>
>> Is it possible to change this ?
>
> It seems you want -F instead of --template.

Yes, but I want git to still parse the log and sanitize it (remove
trailing whitespaces, comments ...)

I actually found that "-F --edit" is what I needed.

Thanks both for your answer.
-- 
Francis

```
