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

Re: [gambit-list] Separating generated files?

From
SBSanti Béjar <santi@agolina.net>
Date
Oct 16, 2008, 13:29 UTC
Message-ID
<adf1fd3d0810160629o31540fd7ke08288961a046ee2@mail.gmail.com>
In-Reply-To
<48F73463.2050902@pflanze.mine.nu>

On Thu, Oct 16, 2008 at 2:32 PM, Christian Jaeger <christian@pflanze.mine.nu> wrote:

Show 17 quoted lines
> Santi Béjar wrote:
>>
>> It looks like the html and man branches of git.git.
>>
>> http://git.kernel.org/?p=git/git.git;a=shortlog;h=html
>> http://git.kernel.org/?p=git/git.git;a=shortlog;h=man
>>
>> They are automatically generated when Junio pushes the branches to
>> kernel.org. Afterwards you can do a "make quick-install-html" and
>> install the preformated html pages from these branches. They are
>> generated with the dodoc.sh script from the todo branch in git.git
>> (look inside for instructions):
>>
>> http://git.kernel.org/?p=git/git.git;a=blob_plain;f=dodoc.sh;hb=todo
>
> This script only generates the html / man branches, it doesn't help find the
> right version for a given git version, right?
Right, one script to generate and one to get the right version.
>
> The differences are:
>
> - the html / man branches have a strictly linear history

Yes, because in this case it is not needed to replicate the whole history, but it could be improved.

Show 6 quoted lines
> and are centrally maintained. This solves the distribution issue for end users. But while
> developping the compiler, the developers may need to go back in the history
> of their own development (e.g. when the current compiler doesn't work
> anymore), and the suspected usefulness of being able to see and track
> differences in the generated code also isn't available for a strictly
> central approach.

So, you can divide the problem in two: (a) generated files in the remote repositories (these can be generated automatically on the server or in a dedicated server) (b) local generated files for local commits. If both follow the same format to specify the original commit you can use the same script to get it.

Show 10 quoted lines
>
> - the script above is only for creating and committing the derived files, in
> a hook similar to the one I suggested in build/.git/hooks/commit-msg; this
> is the "cd build; git commit -m 'generated files for source repository
> commit
>> `git rev-parse HEAD`'" part; the more interesting part comes from
>> automatically finding the right commit in the generated branches for a given
>> source commit. This is what I intend to solve with the
>> "intergit-find-matching-commit-in" script. Said in a simpler way: the git
>> html / man branches do not offer automatically resolvable linking.

They offer this (Autogenerated HTML docs for v1.6.0.2-530-g67faa) but there is no script around it.

My point was that there are other project keeping generated files (and sometimes I would like it too), so you can see what they are doing. At the end, maybe, you system could be usefull for them also.

Santi
Previous: Christian JaegerNext: Christian Jaeger
Message 8 of 9 in “Re: Separating generated files? (Re: Mercurial -> git)”
  1. Nguyen Thai Ngoc DuyOct 15, 2008
  2. Matthieu MoyOct 15, 2008
  3. Michael J GruberOct 15, 2008
  4. Christian JaegerOct 15, 2008
  5. Christian JaegerOct 16, 2008
  6. Santi BéjarOct 16, 2008
  7. Christian JaegerOct 16, 2008
  8. Santi BéjarOct 16, 2008
  9. Christian JaegerOct 15, 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.