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

Re: [PATCH] Use the template mechanism to set up refs/ hierarchy as well.

From
Junio C Hamano <junkio@cox.net>
Date
Aug 4, 2005, 19:59 UTC
Message-ID
<7vll3hxykj.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.63.0508042038200.23886@wgmdd8.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 10 quoted lines
>> This may be controversial from the robustness standpoint, so I
>> am placing it in the proposed update queue first.  Discussions
>> on the list very welcomed.
>
> I'd vote against it: As of now, I can perfectly do
>
> export PATH=$PATH:/whereever/my/git/is
> git-init-db
>
> which would not work with this patch.

I take it to mean that you do not mind building but would want to try it out before installing.

Yes, that is similar to what I meant by "robustness". Maybe we could do two things to make it palatable:

 * Instead of $src/templates/Makefile installing in place, give
   it a real 'build' target that creates $src/templates/blt/
   hierarchy and build things there (I expect we would need some
   templates that needs installation specific customization
   later, and really want to avoid making $src/templates
   something that is copied straight out).  "make install" would
   copy it out to the final destination.
 * Make git-init-db create an absolute minimum $GIT_DIR
   structure itself, if the template directory is not available,
   possibly with a warning.
Then, your post-build pre-installation trial can go like this:
    $ make
    $ PATH=`pwd`:"$PATH"
    $ GIT_TEMPLATE_DIRECTORY=`pwd`/templates/blt
    $ export PATH GIT_TEMPLATE_DIRECTORY
    $ cd /where/ever
    $ git-init-db
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 10 in “Use the template mechanism to set up refs/ hierarchy as well.”
  1. Use the template mechanism to set up refs/ hierarchy as well.Junio C Hamano, Aug 3, 2005
  2. Johannes SchindelinAug 4, 2005
  3. Junio C HamanoAug 4, 2005
  4. Johannes SchindelinAug 4, 2005
  5. Junio C HamanoAug 4, 2005
  6. Johannes SchindelinAug 4, 2005
  7. Junio C HamanoAug 4, 2005
  8. Johannes SchindelinAug 5, 2005
  9. barkalow@iabervon.orgAug 4, 2005
  10. Junio C HamanoAug 5, 2005

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.