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

Re: does a new repo actually *need* default template content?

From
Santiago Torres <santiago@nyu.edu>
Date
Jun 1, 2018, 14:38 UTC
Message-ID
<20180601143823.h7fvri25q7om4whn@LykOS.localdomain>
In-Reply-To
<20180601070609.GC15578@sigill.intra.peff.net>
On Fri, Jun 01, 2018 at 03:06:10AM -0400, Jeff King wrote:
Show 21 quoted lines
> On Mon, May 28, 2018 at 07:56:12PM +0200, Ævar Arnfjörð Bjarmason wrote:
> 
> > 
> > On Mon, May 28 2018, Robert P. J. Day wrote:
> > 
> > >   (apologies for more pedantic nitpickery, just little things i'm
> > > running across in my travels. aside: i actually teach git courses, so
> > > it's a bit embarrassing that i don't know some of this stuff. *sigh*.)
> > 
> > Aside from maybe the empty branches/ directory (see c8a58ac5a5 ("Revert
> > "Don't create the $GIT_DIR/branches directory on init"", 2009-10-31)),
> > none of this is needed.
> > 
> > I wish we didn't create any of this stuff, but have never been inclined
> > to make that my hill to die on.
> > 
> > I think we're much better off just shipping e.g. a single README file in
> > hooks/, or just nothing at all.
> 
> FWIW, that's my opinion, too (including the "hill to die on" part).
> 

+1. It'd probably be worth having the sample hooks be part of the installation, but not as part of every repository (e.g., hold them under /usr/share/git/samples/hooks/ or something along those lines).

> I also wish hooks were just shell snippets in the config files that
> could follow the usual config-precedence rules.

I like this idea, but I'd probably keep the snippets in a separate file to keep things clean.

Thanks, -Santiago.

Previous: Jeff King
Message 4 of 4 in “does a new repo actually *need* default template content?”
  1. Robert P. J. DayMay 28, 2018
  2. Ævar Arnfjörð BjarmasonMay 28, 2018
  3. Jeff KingJun 1, 2018
  4. Santiago TorresJun 1, 2018

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.