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

Re: Is there any plan to support partial checkout or submoudule improvement?

From
JHJan Hudec <bulb@ucw.cz>
Date
Oct 16, 2007, 21:33 UTC
Message-ID
<20071016213359.GJ26127@efreet.light.src>
In-Reply-To
<20071016115310.5FB957E6D@mail.kooxoo.com>
On Tue, Oct 16, 2007 at 19:53:08 +0800, franky wrote:
Show 9 quoted lines
> > You are talking as if your partial checkout was a project in its own
> > right.  Then make it so.  Do not use a partial checkout, but make that a
> > submodule.
> 
> As I said in the first email, the submodule way suffers from the multiple
> commit problem: src and bin as two submodules of project, three commits (for
> the 3 dirs separately) are needed when src directory changes and compiled
> binaries being put in bin directory. It's annoying to have to give 3 commit
> logs.

Thinking about it, it's only two commits -- src can be a submodule, but bin a normal directory (you can choose not to check out subprojects during repository checkout).

This has the advantage, that bin, even when src is not checked out, always knows what version of src it is based on (it's in the gitlink) and you only give two commit messages.

Now I would actually say that commiting bin independently is better. It allows you to commit sources more often (eg. if you are doing series of small fixes) and more flexibility for branching (you don't want to merge binaries).

-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous: frankyNext: franky
Message 10 of 11 in “Is there any plan to support partial checkout or submoudule improvement?”
  1. frankyOct 16, 2007
  2. Lars HjemliOct 16, 2007
  3. frankyOct 16, 2007
  4. Lars HjemliOct 16, 2007
  5. frankyOct 16, 2007
  6. Lars HjemliOct 16, 2007
  7. frankyOct 16, 2007
  8. Johannes SchindelinOct 16, 2007
  9. frankyOct 16, 2007
  10. Jan HudecOct 16, 2007
  11. frankyOct 17, 2007

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.