git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
FMFrancis Moreau <francis.moro@gmail.com>
Date
Oct 30, 2012, 14:23 UTC
Message-ID
<CAC9WiBgxZk3pRoj7nuqXdXKHdaHNpx+9h16o5N-vFAGVoH0NMg@mail.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:

Show 11 quoted lines
> 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
Previous: Tomas CarneckyNext: Johannes Sixt
Message 3 of 4 in “Why does git-commit --template want the template to be modified ?”
  1. Francis MoreauOct 30, 2012
  2. Tomas CarneckyOct 30, 2012
  3. Francis MoreauOct 30, 2012
  4. Johannes SixtOct 30, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.