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

GSoC Project | Submodules related work

From
Prathamesh Chavan <pc44800@gmail.com>
Date
Mar 15, 2017, 09:33 UTC
Message-ID
<CAME+mvW1x6fnGKt1_auGOp+wFYFR=Y_Qhxfd50E7KFe6t+X4kw@mail.gmail.com>
Hey everyone,

I am Prathamesh. I am studying Computer Science and Engineering at IIT Kharagpur. I am interested to participate in Google Summer of Code 2017 under Git organization. I attempted "Avoid pipes in git related commands for test suite" as my microproject[1].

As a part of GSoC, I would like to work on git submodules. The projects I
have looked up are:
        1. "git -C sub add ." might behave just like "git add sub"
        2. Teach "git -C <submodule-path> status" in an unpopulated
           submodule to report the submodule being unpopulated, do not
           fall back to the superproject.
        3. Teach "git log -- <path/into/submodule/and/further>" to behave
           like "git -C <path/into/submodule> log -- <and/further>"

I went through the series of mail (related to projects 1 and 2)[2] for getting a better picture of the projects. I think as the projects are quite interrelated together, these may make a complete GSoC project.

Also the conclusions which I was able to make from the mails[2] are:
1. We are catching commands typed by the user in an unpopulated or
   even an uninitialized submodule.
2. We first check if we are present in the superproject's root dir.
   If .git dir is present we check for the presence of .gitmodules file,
   from which we can check the path give is inside some submodule.
   *When .git file containing just a .gitlink is present then, I am not
   sure but even in this case the root folder contains .gitmodules
   file in the case of submodules(Please correct me here, if I'm going
   wrong), then we may still carry the same procedure as above.
3. Once we can detect whether the $cwd is in a submodule, we can output
   "The submodule 'sub' is not initialized. To init ..." for all the
   commands which doesn't initialize and populate the submodule.
4. As similar detection could be used in the third project listed above,
   hence I even wished to include it.

What are your suggestions about these projects? Also, will it be rational to consider it as one complete project for GSoC? I think this might interfere with Valery's proposal[3] of shell to C conversion of submodule related codes. What do you all think? If it does interfere, then can we both work out on something common?

Thanks, Prathamesh

[1]: https://public-inbox.org/git/20170313065148.10707-1-pc44800@gmail.com/T/#u [2]: https://public-inbox.org/git/CAGZ79kYW1zS3-9AYPaiUfBGTFygyg1ZVd3YyOctp3gihfEpHeg@mail.gmail.com/T/#u [3]: https://public-inbox.org/git/20170310211348.18887-1-me@vtolstov.org/T/#u

Next: Stefan Beller
Message 1 of 4 in “GSoC Project | Submodules related work”
  1. Prathamesh ChavanMar 15, 2017
  2. Stefan BellerMar 15, 2017
  3. PrathameshMar 15, 2017
  4. Stefan BellerMar 15, 2017

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.