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

Re: [RFC] Code reorgnization

From
John Keeping <john@keeping.me.uk>
Date
Mar 17, 2016, 21:43 UTC
Message-ID
<20160317214355.GA32317@serenity.lan>
In-Reply-To
<xmqqy49gzzrf.fsf@gitster.mtv.corp.google.com>
On Thu, Mar 17, 2016 at 12:10:44PM -0700, Junio C Hamano wrote:
Show 19 quoted lines
> Stefan Beller <sbeller@google.com> writes:
> 
> > For now I would just go with 3 directories:
> >
> > non-git/ (or util, helpers, or anything that could be ripped out and be useful
> >     e.g. strbufs, argv-array run-command, lockfile
> > git/ (maybe called lib? All stuff that is pure Git and is used for libgit
> >
> > builtin/ (as we have it today + all that stuff that doesn't go into
> > git/ very well?)
> 
> It is unclear where you want to have standalone programs in the
> above.  I'd say lib/ and src/ for the first two, where lib/ is for
> things that could be lifted without any Git dependencies and src/
> for everything else.
> 
> Aren't there some folks who link directly with our codebase (I am
> thinking about cgit, but hjemli.net/git/cgit does not seem to be
> responding anymore)?
CGit lives at https://git.zx2c4.com/cgit/ these days.

The organisation of the git code shouldn't make a difference since CGit just links with libgit.a, even if it does CGit pulls in git.git as a submodule so it can just fix any problems in the same commit that updates the submodule reference.

Previous: Pranit BauvaNext: Junio C Hamano
Message 10 of 14 in “[RFC] Code reorgnization”
  1. Duy NguyenMar 17, 2016
  2. Johannes SchindelinMar 17, 2016
  3. Duy NguyenMar 17, 2016
  4. Junio C HamanoMar 17, 2016
  5. Thomas AdamMar 17, 2016
  6. Junio C HamanoMar 17, 2016
  7. Stefan BellerMar 17, 2016
  8. Junio C HamanoMar 17, 2016
  9. Pranit BauvaMar 17, 2016
  10. John KeepingMar 17, 2016
  11. Junio C HamanoMar 17, 2016
  12. Duy NguyenMar 18, 2016
  13. Jeff KingMar 18, 2016
  14. Duy NguyenMar 18, 2016

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.