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

Re: GSoC 2016: applications open, deadline = Fri, 19/2

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 18, 2016, 19:13 UTC
Message-ID
<xmqq7fi1hlw6.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAGZ79kbGyCTdq4P02fNb7tEuvkvqcZviWJp40Ob1ed6=JCh9Xg@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
Show 12 quoted lines
> On Thu, Feb 18, 2016 at 12:41 AM, Lars Schneider
> <larsxschneider@gmail.com> wrote:
>>> Feel free to start writting an idea for
>>> http://git.github.io/SoC-2016-Ideas/. It'd be nice to have a few more
>>> ideas before Friday. We can polish them later if needed.
>>
>> I published my ideas here:
>> https://github.com/git/git.github.io/pull/125/files
>
> I like the idea of a beginner mode, but on the other hand that looks
> inflexible to me ;)
> (What if I want to use rebase, but not reset --hard?)

That's simple. You say "cd .. && rm -fr repo && git clone" and start from scratch ;-).

This whole "beginner should be limited to a 'safe' subset" is an unhealthy attitude.

Deciding what the 'safe' subset is must be done with a lot of thinking by people who intimately know what implications it has to ban each feature. I do not think it would be a good fit for a project to give to a relatively new participant to the Git project.

For example, I think banning "worktree" feature from newbies may not be a bad idea, as you can work on a project without using "worktree" at all, and use of "worktree" would only subject you to bugs that do not exist when you do not use that feature. The "shallow clone", "sparse checkout", and "untracked cache" fall into the same category for exactly the same reason. The "submodule" feature might fall into the same category for the same reason, but that is not something you as a project participant can unilaterally decide, as the project you are working on may have already decided to use the feature, so it is harder to ban from the beginners.

But for the rest of really "core" part of Git, I do not think there is any such command that can be totally banned.

We have these "powerful" tools for a reason. After making a mess experimenting with your working tree files, "reset --hard" is the best tool to go back to the known-good state, and robbing it from the users is not a sound approach to help them. When "powerful" becomes "too powerful" is when a "powerful" tool is misused. It is perhaps done by mistake or perhaps done by copying and pasting a solution from Interweb for a problem that does not match your situation without understanding what you are doing.

What is needed to help beginners is to make the powerful tool harder to misuse. Of course, that would be a harder task, because you have to do a real thinking.

You do not have to do any thinking to say that "a blanket ban that hides these powerful tools behind the beginner mode" helps beginners, but I do not think it is solving what really matters. At the same time, it just adds to the FUD, i.e. some commands are too powerful for their own good.

Previous: Stefan BellerNext: Matthieu Moy
Message 55 of 67 in “GSoC 2016: applications open, deadline = Fri, 19/2”
  1. Matthieu MoyFeb 10, 2016
  2. Johannes SchindelinFeb 10, 2016
  3. Stefan BellerFeb 10, 2016
  4. Christian CouderFeb 11, 2016
  5. Matthieu MoyFeb 12, 2016
  6. Lars SchneiderFeb 12, 2016
  7. Matthieu MoyFeb 12, 2016
  8. Jeff KingFeb 12, 2016
  9. Jeff KingFeb 12, 2016
  10. Matthieu MoyFeb 13, 2016
  11. Stefan BellerFeb 16, 2016
  12. Matthieu MoyFeb 17, 2016
  13. Duy NguyenFeb 17, 2016
  14. 0/3 Turn git-rebase--*.sh to external helpersNguyễn Thái Ngọc Duy, Feb 17, 2016
  15. 1/3 rebase: move common functions to rebase--lib.shNguyễn Thái Ngọc Duy, Feb 17, 2016
  16. 2/3 rebase: move cleanup code to exit_rebase()Nguyễn Thái Ngọc Duy, Feb 17, 2016
  17. Matthieu MoyFeb 17, 2016
  18. 3/3 rebase: turn git-rebase--*.sh into separate programsNguyễn Thái Ngọc Duy, Feb 17, 2016
  19. Matthieu MoyFeb 17, 2016
  20. Johannes SchindelinFeb 17, 2016
  21. Duy NguyenFeb 17, 2016
  22. Johannes SchindelinFeb 17, 2016
  23. Christian CouderFeb 17, 2016
  24. Duy NguyenFeb 22, 2016
  25. Matthieu MoyFeb 22, 2016
  26. Jeff KingFeb 22, 2016
  27. Junio C HamanoFeb 22, 2016
  28. Jeff KingFeb 22, 2016
  29. Matthieu MoyFeb 23, 2016
  30. Jeff KingFeb 24, 2016
  31. Thomas GummererFeb 17, 2016
  32. Lars SchneiderFeb 17, 2016
  33. Matthieu MoyFeb 17, 2016
  34. Junio C HamanoFeb 17, 2016
  35. Matthieu MoyFeb 17, 2016
  36. Jeff KingFeb 17, 2016
  37. Junio C HamanoFeb 17, 2016
  38. Carlos Martín NietoFeb 18, 2016
  39. Matthieu MoyFeb 19, 2016
  40. Carlos Martín NietoFeb 19, 2016
  41. Git has been accepted as a GSoC 2016 mentor organization!Matthieu Moy, Feb 29, 2016
  42. Jeff KingMar 8, 2016
  43. Junio C HamanoMar 8, 2016
  44. Jeff KingMar 8, 2016
  45. Matthieu MoyMar 9, 2016
  46. Jeff KingMar 9, 2016
  47. Johannes SchindelinMar 9, 2016
  48. Jeff KingMar 9, 2016
  49. Matthieu MoyFeb 19, 2016
  50. Jeff KingFeb 19, 2016
  51. Matthieu MoyFeb 19, 2016
  52. Jeff KingFeb 19, 2016
  53. Lars SchneiderFeb 18, 2016
  54. Stefan BellerFeb 18, 2016
  55. Junio C HamanoFeb 18, 2016
  56. Matthieu MoyFeb 19, 2016
  57. Junio C HamanoFeb 19, 2016
  58. Johannes SchindelinFeb 20, 2016
  59. Lars SchneiderFeb 19, 2016
  60. Matthieu MoyFeb 19, 2016
  61. Junio C HamanoFeb 19, 2016
  62. Thomas GummererFeb 19, 2016
  63. Duy NguyenFeb 19, 2016
  64. Junio C HamanoFeb 19, 2016
  65. Duy NguyenFeb 19, 2016
  66. Matthieu MoyFeb 19, 2016
  67. Duy NguyenFeb 19, 2016

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.