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

Re: [PATCH] make 'git add' a first class user friendly interface to the index

From
Nicolas Pitre <nico@cam.org>
Date
Dec 3, 2006, 04:22 UTC
Message-ID
<Pine.LNX.4.64.0612022305100.2630@xanadu.home>
In-Reply-To
<87psb22qgu.wl%cworth@cworth.org>
On Sat, 2 Dec 2006, Carl Worth wrote:
Show 6 quoted lines
> If git's model imposes the requirement, "we should first teach one
> thing, then move on to teach a subsequent thing", it would be just
> that much nicer if the commands themselves could help us do that,
> (because the default would do the thing they would need first, and
> then the user has to explicitly do _something_ else to get the
> subsequent thing).

Since I've been thinking about this issue I've come to the conclusion that making commit -a the default for commit is not a good thing.

Why? Because we really want newbies to be tricked into using the index.

And teaching about the different ways to update the index in the tutorial right after the first commit example is IMHO the best thing to do.

Making commit -a the default would make it possible for newbies to get along for a long while ignoring the usage model of git and that is bad.

I think the idea is really to make "git commit" with a clean index more clueful to the user. Right now it only says "use git-update-index to mark for commit" which is really not that helpful, and actually the point of failure with the example newbie problem you pointed out.

There is a compromise to reach. Sure the _user_ needs a proper model to use the tool without being bothered with technical implementation or architecture details. But we still need newbies to get into the git model nevertheless, and having a default for git-commit geared towards making it bump free for new users is not the way to go I think. The "nothing to commit" message needs to be way more helpful with better guidance and the git-commit default behavior should be overcome.

Previous: Nicolas PitreNext: Nicolas Pitre
Message 16 of 21 in “make 'git add' a first class user friendly interface to the index”
  1. make 'git add' a first class user friendly interface to the indexNicolas Pitre, Dec 1, 2006
  2. Junio C HamanoDec 1, 2006
  3. Alan ChandlerDec 2, 2006
  4. Nicolas PitreDec 2, 2006
  5. Nicolas PitreDec 2, 2006
  6. Carl WorthDec 2, 2006
  7. Junio C HamanoDec 2, 2006
  8. Carl WorthDec 2, 2006
  9. Jakub NarebskiDec 2, 2006
  10. Han-Wen NienhuysDec 2, 2006
  11. Alan ChandlerDec 2, 2006
  12. Carl WorthDec 2, 2006
  13. Jakub NarebskiDec 2, 2006
  14. Alan ChandlerDec 2, 2006
  15. Nicolas PitreDec 3, 2006
  16. Nicolas PitreDec 3, 2006
  17. Nicolas PitreDec 3, 2006
  18. Jakub NarebskiDec 2, 2006
  19. Nicolas PitreDec 3, 2006
  20. make 'git add' a first class user friendly interface to the indexNicolas Pitre, Dec 3, 2006
  21. Alan ChandlerDec 3, 2006

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.