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

Maintaining an html branch

From
Christos Trochalakis <yatiohi@ideopolis.gr>
Date
May 25, 2010, 06:43 UTC
Message-ID
<AANLkTimMVn8fMVBmfNi4vR3kk3cXF2gq0Y9Ij5w3cl15@mail.gmail.com>
Hello,

I would like to maintain an html branch for my repo, containing files under my '_site/' dir that is not version controlled.

Below is a first draft that works, but as I am not really familiar with git plumbing, I'd appreciate any comments on a better way or style to to write it.

#!bash jekyll --no-auto # build the static website on _site/ dir rm .git/html.index export GIT_INDEX_FILE=.git/html.index git add -f _site tree_id=$(git write-tree --prefix=_site/) new_commit=$(echo "New website"|git commit-tree $tree_id -p html) git update-ref html $new_commit rm .git/html.index

Thanks, Chris

Next: Jonathan Nieder
Message 1 of 2 in “Maintaining an html branch”
  1. Christos TrochalakisMay 25, 2010
  2. Jonathan NiederMay 25, 2010

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.