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

Re: Requesting suggestions for a good sample "prepare-commit-msg" hook

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 5, 2017, 19:19 UTC
Message-ID
<xmqqzicihesv.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<1499278787.1791.2.camel@gmail.com>
Kaartic Sivaraam <kaarticsivaraam91196@gmail.com> writes:
Show 17 quoted lines
>> On Wed, 2017-07-05 at 10:00 -0700, Junio C Hamano wrote:
>> > I am not so sure that we are searching for them, to be honest (who
>> > are we in this context anyway?)
>> 
> Imagining HTML could be used in plain-text,
>
> <strike> I think I misinterpreted your sentence in one of the other
> mails (found below), </strike> Sorry for that sloppy sentence. More
> correctly, the "we" in that context is the same as the "we" in the
> context of the text quoted below,
>
>>     That sounds like a sample that is there not because it would be
>>     useful, but because we couldn't think of any useful example.
>> 
>
> Link to the post that has the quoted text,
> http://public-inbox.org/git/%3Cxmqqy3s7nbkm.fsf@gitster.mtv.corp.google.com%3E/

I honestly do not see your point. Yes, I said that the change indicates that there is no useful example found (so far). That does not necessarily mean that we must find a useful example so that we can keep this sample script, which now became useless, alive.

I am questioning the assumption that it helps users to have a sample for prepare-commit-msg shipped with our source, and I suspect that it may no longer be true. If the sole purpose of finding a useful example is to keep the sample script alive, when the sample script is no longer a useful thing to ship, then it does sound like "a solution looking for a problem", no?

Previous: Kaartic SivaraamNext: Kaartic Sivaraam
Message 5 of 6 in “Requesting suggestions for a good sample "prepare-commit-msg" hook”
  1. Kaartic SivaraamJul 5, 2017
  2. Junio C HamanoJul 5, 2017
  3. Kaartic SivaraamJul 5, 2017
  4. Kaartic SivaraamJul 5, 2017
  5. Junio C HamanoJul 5, 2017
  6. Kaartic SivaraamJul 6, 2017

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.