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

Re: [PATCH] git-commit: revamp the git-commit semantics.

From
Junio C Hamano <junkio@cox.net>
Date
Feb 7, 2006, 18:18 UTC
Message-ID
<7vpslzuj6e.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7vfymvvz1r.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
> I was hoping that before 1.2.0 I can take a final "just in case"
> quick poll to see everybody agrees making --only the default is
> the way to go, then state it clearly that 1.3.0 will have the
> default switched to --only in the release announcement.
Clarification.  Here is what I want to do.

I've said enough times that we _may_ switch the default from traditional --include semantics to new --only semantics. Nico already even objected to the "may" part, and I am hoping it is shared by everybody on the list that "may" should be "will soon". Unless somebody comes up with a convincing argument otherwise, I'll write "this will switch to --only by the time 1.3.0 release is made, so start converting your scripts to explicitly say --include or --only if you want a specific behaviour, and start training your fingers in the meantime as well" in the 1.2.0 announcement, probably done sometime late this week.

That means 1.2.0 (and its maintenance series 1.2.X) will ship with --include semantics for "git commit paths...", and will allow explicit --only/--include. After 1.2.0, at some point, the "master" branch will start shipping with --only semantics as default. No script should break when 1.3.0 happens.

People who want to use --include semantics will acquire a habit of explicitly askign for --include during 1.3.0 development period. They do not need to unlearn anything when 1.3.0 happens.

People who learned to type --only can unlearn it to reduce typing when 1.3.0 happens, but unlearning is not a requirement. Being explicit should always work.

New people that come after 1.3.0 will get the --only semantics by default, the intuitiveness of which has been argued to death, without using any flags.

Previous: Junio C HamanoNext: Jon Loeliger
Message 8 of 16 in “git-commit: revamp the git-commit semantics.”
  1. git-commit: revamp the git-commit semantics.Junio C Hamano, Feb 5, 2006
  2. Marco CostalbaFeb 5, 2006
  3. Junio C HamanoFeb 5, 2006
  4. Marco CostalbaFeb 5, 2006
  5. Junio C HamanoFeb 5, 2006
  6. Nicolas PitreFeb 7, 2006
  7. Junio C HamanoFeb 7, 2006
  8. Junio C HamanoFeb 7, 2006
  9. Jon LoeligerFeb 7, 2006
  10. Nicolas PitreFeb 7, 2006
  11. Nicolas PitreFeb 7, 2006
  12. Junio C HamanoFeb 8, 2006
  13. Junio C HamanoFeb 6, 2006
  14. Junio C HamanoFeb 6, 2006
  15. Michael FischerFeb 6, 2006
  16. Junio C HamanoFeb 6, 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.