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

Re: Question relate to collaboration on git monorepo

From
Derrick Stolee <derrickstolee@github.com>
Date
Sep 23, 2022, 18:11 UTC
Message-ID
<a86af661-cf58-a4e5-0214-a67d3a794d7e@github.com>
In-Reply-To
<xmqqzgeqw0sy.fsf@gitster.g>
On 9/23/2022 11:46 AM, Junio C Hamano wrote:
> Derrick Stolee <derrickstolee@github.com> writes:
Show 19 quoted lines
>> This is an interesting find! I wonder how many people are hitting this
>> in the wild. Perhaps merge.stat should be added to the optional, but
>> recommended config options in scalar.c.
> 
> Hmph.  It somehow sounds like throwing the baby out with the
> bathwater, doesn't it.
> 
> You are only interested in a few directories in the project.  You
> pull from somebody else (or the central repository), and end up
> getting updates to both inside and outside the areas of your
> interest.
> 
> As a project gets larger and better modularized, does it become more
> likely that such an update will happen more often?
> 
> I am very tempted to suggest that the diffstat after a merge in such
> a project should use the sparse cone(s) as pathspec.  Disabling the
> "what happened in this merge" report altogether is a way too blunt
> instrument, isn't it?

You're right that having a sparse-checkout-scoped diffstat is likely to be interesting in the long term. It does require updating its format to describe "some paths outside the sparse-checkout changed, but we won't give you the full diffstat there".

Using something like the config to disable it in the short term would certainly hide the pain point, but you're right that we shouldn't stop there.

Thanks, -Stolee

Previous: Junio C HamanoNext: ZheNing Hu
Message 9 of 12 in “Question relate to collaboration on git monorepo”
  1. ZheNing HuSep 20, 2022
  2. Emily ShafferSep 20, 2022
  3. ZheNing HuSep 21, 2022
  4. Elijah NewrenSep 21, 2022
  5. Derrick StoleeSep 22, 2022
  6. Emily ShafferSep 22, 2022
  7. Elijah NewrenSep 23, 2022
  8. Junio C HamanoSep 23, 2022
  9. Derrick StoleeSep 23, 2022
  10. ZheNing HuSep 23, 2022
  11. Elijah NewrenSep 21, 2022
  12. ZheNing HuSep 21, 2022

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.