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

Re: Git in Outreachy?

From
Christian Couder <christian.couder@gmail.com>
Date
Sep 19, 2020, 07:40 UTC
Message-ID
<CAP8UFD1BxnOk4-gaUQb9bY5zhAtD8Jy-x0RC=pNMSQvUaVxRmg@mail.gmail.com>
In-Reply-To
<nycvar.QRO.7.76.6.2009162206580.56@tvgsbejvaqbjf.bet>
Hi Dscho,

On Wed, Sep 16, 2020 at 10:27 PM Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

> On Wed, 16 Sep 2020, Christian Couder wrote:
Show 17 quoted lines
> > To summarize more, it seems to me that only the following scripts
> > could be worth converting:
> >
> > git-difftool--helper.sh
> > git-mergetool--lib.sh
> > git-mergetool.sh
> >
> > I wonder if they are really worth converting though, as they should
> > probably all be converted together and we would likely also need to
> > convert the scripts in mergetools/ at the same time. And then there
> > should be a way to still easily configure things for users. So perhaps
> > a better way to approach this would be first to convert the scripts in
> > mergetools/ into config files.
>
> The biggest problem is that they're all entangled.
> `git-difftool--helper.sh` sources `git-mergetool--lib.sh` and uses quite a
> bit of its machinery.
Yeah, I agree this is an issue.
> As to converting the scripts to config files, I'd rather have them
> hard-coded in the source code.

I am not sure what are the pros and cons of hardcoding vs config files in this case.

My opinion is that config files would make it easier for people to contribute what's needed for new tools, while hardcoding might make it more easily extensible for us and might reduce backward compatibility issues.

> I would then probably try to implement the bare minimum for the
> `difftool--helper` command to work (re-implementing in C only the parts of
> `mergetool--lib` that are necessary), and only in a next patch series work
> on `mergetool`.

Thanks for your opinion on this. For now I think it needs to be discussed more before we could suggest it as a project.

Best, Christian.

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 39 of 44 in “Git in Outreachy?”
  1. Jeff KingAug 28, 2020
  2. Christian CouderAug 31, 2020
  3. Jonathan NiederSep 3, 2020
  4. Philip OakleySep 4, 2020
  5. Johannes SchindelinSep 7, 2020
  6. Philip OakleySep 16, 2020
  7. Johannes SchindelinSep 16, 2020
  8. Philip OakleySep 17, 2020
  9. Taylor BlauSep 9, 2020
  10. Jonathan NiederSep 10, 2020
  11. Taylor BlauSep 10, 2020
  12. Christian CouderSep 16, 2020
  13. Christian CouderSep 16, 2020
  14. Junio C HamanoAug 31, 2020
  15. Emily ShafferAug 31, 2020
  16. Jeff KingSep 1, 2020
  17. Jeff KingSep 3, 2020
  18. Jeff KingSep 15, 2020
  19. Kaartic SivaraamSep 15, 2020
  20. Jeff KingSep 15, 2020
  21. Christian CouderSep 19, 2020
  22. Phillip WoodSep 19, 2020
  23. Christian CouderSep 16, 2020
  24. Johannes SchindelinSep 2, 2020
  25. Christian CouderSep 16, 2020
  26. Phillip WoodSep 16, 2020
  27. Christian CouderSep 17, 2020
  28. Phillip WoodSep 17, 2020
  29. Christian CouderSep 18, 2020
  30. Elijah NewrenSep 17, 2020
  31. Christian CouderSep 18, 2020
  32. Kaartic SivaraamSep 27, 2020
  33. Christian CouderSep 27, 2020
  34. Christian CouderOct 29, 2020
  35. Kaartic SivaraamSep 6, 2020
  36. Johannes SchindelinSep 7, 2020
  37. Christian CouderSep 16, 2020
  38. Johannes SchindelinSep 16, 2020
  39. Christian CouderSep 19, 2020
  40. Johannes SchindelinSep 20, 2020
  41. Kaartic SivaraamSep 20, 2020
  42. Christian CouderSep 21, 2020
  43. Kaartic SivaraamSep 21, 2020
  44. Shourya ShuklaSep 21, 2020

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.