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

Re: [GSOC][RFC] Heed core.bare from template config file when no command line override given, as a microproject.

From
Elijah Newren <newren@gmail.com>
Date
Jan 19, 2024, 01:43 UTC
Message-ID
<CABPp-BFSTpe=wT6JM1CCYJCkYptTB_OZSpqOa0Syq3puxNxEPA@mail.gmail.com>
In-Reply-To
<xmqqo7dvloiu.fsf@gitster.g>
On Mon, Jan 8, 2024 at 9:32 AM Junio C Hamano <gitster@pobox.com> wrote:
Show 16 quoted lines
>
> "Ghanshyam Thakkar" <shyamthakkar001@gmail.com> writes:
>
> >> Specifically, the commit that introduced the comment never wanted to
> >> honor core.bare in the template.  I do not think I has core.bare in
> >> mind when I wrote the comment, but I would have described it as the
> >> same category as the repository format version, i.e. something you
> >> would not want to copy, if I were pressed to clarify back then.
> >
> > Then I suppose this warrants updating the TODO comment in
> > create_default_files(), which currently can be interpreted as this
> > being a unwanted behavior. And also amending the testcases which
> > currently display this as knwon breakage.
>
> I obviously agree with that, after saying that I suspect 0f7443bd
> comes from a misunderstanding ;-).

Sounds fine to me. I have no particular interest in supporting core.bare from the template; it's just that in order to do other cleanup, I needed to remove the init_is_bare_repository global variable (see c2f76965d02 ("init-db: remove unnecessary global variable", 2023-05-16)). Attempting to remove that global variable made it _look_ like I was changing the code behavior and breaking it in the case when core.bare was true in the template. I knew possible code breakage was what code reviewers would ask about. And my best reading of the fact that the variable existed plus how the code was written suggested to me that indeed someone else thought this might be important to support. So, I left the TODO behind to document that I wasn't breaking the code with my changes (or even changing behavior at all), and left some hints for the next reader who came along about where they might start looking if they thought it was important to fix.

Previous: Junio C HamanoNext: Ghanshyam Thakkar
Message 8 of 15 in “[GSOC][RFC] Heed core.bare from template config file when no command line override given, as a microproject.”
  1. Ghanshyam ThakkarJan 2, 2024
  2. Christian CouderJan 4, 2024
  3. Ghanshyam ThakkarJan 4, 2024
  4. Elijah NewrenJan 5, 2024
  5. Junio C HamanoJan 5, 2024
  6. Ghanshyam ThakkarJan 6, 2024
  7. Junio C HamanoJan 8, 2024
  8. Elijah NewrenJan 19, 2024
  9. setup: clarify TODO comment about ignoring core.bareGhanshyam Thakkar, Feb 29, 2024
  10. Junio C HamanoFeb 29, 2024
  11. Ghanshyam ThakkarFeb 29, 2024
  12. setup: remove unnecessary variableGhanshyam Thakkar, Mar 4, 2024
  13. Junio C HamanoMar 4, 2024
  14. Ghanshyam ThakkarMar 4, 2024
  15. Junio C HamanoMar 4, 2024

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.