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

Re: start of git2 (based on libgit2)

From
Vincent van Ravesteijn <vfr@lyx.org>
Date
Mar 27, 2011, 09:56 UTC
Message-ID
<4D8F09B4.7030602@lyx.org>
In-Reply-To
<7v62r52c85.fsf@alter.siamese.dyndns.org>
> I agree that for a summer student project, aiming at basic stuff makes
> more sense than trying to chew a large bite that cannot be managed within
> the timeframe and not achieving anything

If things will be working out, I will at least not disappear after the summer. I'm quite new here, but I'd like to help out in coordinating the student(s) and to continue with it after summer (if the student(s) do not stick to the git development). I'm still missing quite some knowledge about git, but I hope that will come with time.

Show 6 quoted lines
> "A..B" requires you to walk the ancestry chain. Limiting history with
> pathspec while simplifying merges needs to use the tree-diff machinery;
> and filtering commits by looking at the message with "--grep" needs to
> call into the grep machinery.  Depending on how much libgit2 has already
> covered the basic blocks, even the above list might be too much, I am
> afraid.

Yes, it would be important to understand how much already is covered by libgit2. If someone could shed some light on this (see also my message on the libgit2@librelist.org mailing list).

> A good news is

[..] still re-reading this paragraph to find out what the actual 'good' part of this news is ;)...[..]

Show 7 quoted lines
> that among the larger and more important basic building
> blocks in C git, there is only one part that was designed from day one to
> disregard the reusability and instead aimed for speed and simplicity, and
> that is the history and object walking. The way the in-core object pool is
> managed and especially the way per-object flags are designed to be used
> clearly show that the revision walker machinery can take it granted that
> the calling programs are run-once-and-clean-via-exit.

That's what I meant with my previous message. I was not aiming to implement all exotic features, but I think that it would be a good design if git and git2 share a lot together and only differ in how they actually use the git/libgit backend. As part of the process, the git code can be adjusted as well to "libify" it (as it was called in another thread).

Vincent
Previous: Junio C HamanoNext: Sam Vilain
Message 6 of 7 in “start of git2 (based on libgit2)”
  1. Motiejus JakštysMar 25, 2011
  2. Vincent van RavesteijnMar 25, 2011
  3. Motiejus JakštysMar 26, 2011
  4. Jeff KingMar 26, 2011
  5. Junio C HamanoMar 27, 2011
  6. Vincent van RavesteijnMar 27, 2011
  7. Sam VilainMar 26, 2011

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.