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

Re: [PATCH v2 03/11] Prefer 'up-to-date' spelling

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 7, 2019, 05:11 UTC
Message-ID
<xmqqlfsss22d.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<466aead9af6516ff94a5d217e58ab894e63088b7.1572973651.git.gitgitgadget@gmail.com>
"Elijah Newren via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 15 quoted lines
>  gitk-git/gitk                  | 2 +-
> ...
> diff --git a/gitk-git/gitk b/gitk-git/gitk
> index abe4805ade..50a5b60c13 100755
> --- a/gitk-git/gitk
> +++ b/gitk-git/gitk
> @@ -9696,7 +9696,7 @@ proc cherrypick {} {
>      if {[catch {exec sh -c "git cherry-pick -r $rowmenuid 2>&1"} err]} {
>  	notbusy cherrypick
>  	if {[regexp -line \
> -		 {Entry '(.*)' (would be overwritten by merge|not uptodate)} \
> +		 {Entry '(.*)' (would be overwritten by merge|not up-to-date)} \
>  		 $err msg fname]} {
>  	    error_popup [mc "Cherry-pick failed because of local changes\
>  			to file '%s'.\nPlease commit, reset or stash\
Not very satisfactory for two reasons.

Procedurally, I'd strongly prefer to see any patch that touches "gitk" (and similarly "git-gui" and "po") to be separated from the rest, and not directly sent to me. Further, "gitk" is merged one-way into my tree with -Xsubtree=gitk (similarly for "git-gui"), so a patch to it would be to change "a/gitk" to "b/gitk".

Content-wise, because "gitk" (and similarly "git-gui") is a project that stands on its own, we (at least this is a wish by its primary author and maintainer the last time I checked with him) want to make sure that slightly older/newer gitk is interoperable with slightly newer/older git. Preparing to also see "uptodate" emitted by the version of git it runs would be a good way to achieve this.

We do not promise interoperability between vastly different versions forever, by the way. I see "cherry-pick -r" used in the precontext, but "--replay" has been the default for the command for the past dozen years, and now it is just an unadvertised noop. It probably is OK now to remove "-r" from the invocation here ;-)

Thanks.
Previous: Elijah Newren via GitGitGadgetNext: Junio C Hamano
Message 6 of 17 in “Thyme two ficks sum Documentaton tyops and speling erors!”
  1. 0/1 Thyme two ficks sum Documentaton tyops and speling erors!Elijah Newren via GitGitGadget, Oct 23, 2019
  2. 1/1 Documentation: fix a bunch of typos, both old and newElijah Newren via GitGitGadget, Oct 23, 2019
  3. 00/11 Thyme two ficks sum Documentaton tyops and speling erors!Elijah Newren via GitGitGadget, Nov 5, 2019
  4. 02/11 Fix spelling errors in documentation outside of Documentation/Elijah Newren via GitGitGadget, Nov 5, 2019
  5. 03/11 Prefer 'up-to-date' spellingElijah Newren via GitGitGadget, Nov 5, 2019
  6. Junio C HamanoNov 7, 2019
  7. Junio C HamanoNov 7, 2019
  8. Elijah NewrenNov 7, 2019
  9. 05/11 Fix spelling errors in comments of testcasesElijah Newren via GitGitGadget, Nov 5, 2019
  10. 04/11 Fix spelling errors in code commentsElijah Newren via GitGitGadget, Nov 5, 2019
  11. 06/11 Fix spelling errors in names of testsElijah Newren via GitGitGadget, Nov 5, 2019
  12. 07/11 Fix spelling errors in messages shown to usersElijah Newren via GitGitGadget, Nov 5, 2019
  13. 09/11 sha1dc: fix trivial comment spelling errorElijah Newren via GitGitGadget, Nov 5, 2019
  14. 08/11 Fix spelling errors in test commandsElijah Newren via GitGitGadget, Nov 5, 2019
  15. 11/11 Fix spelling errors in no-longer-updated-from-upstream modulesElijah Newren via GitGitGadget, Nov 5, 2019
  16. 10/11 multimail: fix a few simple spelling errorsElijah Newren via GitGitGadget, Nov 5, 2019
  17. 01/11 Documentation: fix a bunch of typos, both old and newElijah Newren via GitGitGadget, Nov 5, 2019

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.