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

Re: commit.template

From
Boyd Stephen Smith Jr. <bss@iguanasuicide.net>
Date
Dec 27, 2008, 00:53 UTC
Message-ID
<200812261853.55464.bss@iguanasuicide.net>
In-Reply-To
<87hc4qscz5.fsf@jidanni.org>
On Friday 2008 December 26 18:01:18 jidanni@jidanni.org wrote:
Show 11 quoted lines
> OK, both
>
> >> 1) man git-config mentions
> >> commit.template
>
> and
> BSS> git commit --help tells how this configuration option is used, in the
> BSS> documentation of the "-t" option.
> should
>
> >> mention what file is being used presently

There is no file being used presently. With the "-m" or "-F" option, no template is ever used. Without those options, either the argument to "-t" or the value of commit.template is used in that order; the editor is invoked on that. Finally if neither of those are defined the editor is invoked on a new, empty file.

> as one needs a template in order to modify a template.

You aren't modifying the template with commit.template or "-t", you are specifying one. You can create one from scratch in your editor of choice.

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss@iguanasuicide.net                     ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.net/                      \_/     
Previous: jidanni@jidanni.orgNext: jidanni@jidanni.org
Message 11 of 19 in “gitrepository-layout: No longer first two letters. Also add "down".”
  1. gitrepository-layout: No longer first two letters. Also add "down".jidanni@jidanni.org, Dec 26, 2008
  2. Junio C HamanoDec 26, 2008
  3. jidanni@jidanni.orgDec 26, 2008
  4. Junio C HamanoDec 26, 2008
  5. jidanni@jidanni.orgDec 26, 2008
  6. Nanako ShiraishiDec 26, 2008
  7. commit.templatejidanni@jidanni.org, Dec 26, 2008
  8. Junio C HamanoDec 26, 2008
  9. Boyd Stephen Smith Jr.Dec 26, 2008
  10. jidanni@jidanni.orgDec 27, 2008
  11. Boyd Stephen Smith Jr.Dec 27, 2008
  12. jidanni@jidanni.orgDec 27, 2008
  13. Boyd Stephen Smith Jr.Dec 27, 2008
  14. jidanni@jidanni.orgDec 27, 2008
  15. Nanako ShiraishiDec 27, 2008
  16. Junio C HamanoDec 27, 2008
  17. Junio C HamanoDec 27, 2008
  18. Sverre RabbelierDec 28, 2008
  19. Nanako ShiraishiDec 29, 2008

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.