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

Re: [GSoC] My Git Dev Blog — Week 6

From
Atharva Raykar <raykar.ath@gmail.com>
Date
Jun 28, 2021, 07:35 UTC
Message-ID
<6305ED7B-0C92-4C14-9F75-2EC3B24A6D2F@gmail.com>
In-Reply-To
<60d8aefdb7f1a_ba9f3208ca@natae.notmuch>
On 27-Jun-2021, at 22:31, Felipe Contreras <felipe.contreras@gmail.com> wrote:
Show 25 quoted lines
> 
> Atharva Raykar wrote:
> 
>>  * Reflections:
>>    - How does Git even start?
>>      (https://atharvaraykar.me/gitnotes/week6#how-does-git-even-start)
>>      This was just something I was curious about, not really important
>>      to my project. If anyone knows the answer to what I asked in that,
>>      section, it would be nice to know!
> 
> They are not all linked together.
> 
> Take for example shell.c, which will be used to generate shell.o, which
> is used here:
> 
>  PROGRAM_OBJS += shell.o
> 
> PROGRAM_OBJS is used here:
> 
>  PROGRAMS += $(patsubst %.o,git-%$X,$(PROGRAM_OBJS))
> 
> This means shell.o will be used to generate a program called git-shell.
> 
> But the "git" program will not use PROGRAM_OBJS, therefore it will not
> link shell.o.

Thanks, that explained a lot of things for me, and I noticed 'git.c:cmd_main()' does indeed call these separately created executables (like git-shell).

I'll try to update my blog post with this explanation when I get some free time for it.

Previous: Felipe ContrerasNext: Christian Couder
Message 3 of 6 in “[GSoC] My Git Dev Blog — Week 6”
  1. Atharva RaykarJun 27, 2021
  2. Felipe ContrerasJun 27, 2021
  3. Atharva RaykarJun 28, 2021
  4. Christian CouderJun 27, 2021
  5. Atharva RaykarJun 28, 2021
  6. Atharva RaykarJun 28, 2021

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.