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

Re: [PATCH 0/2] Documentation/howto/maintain-git.txt: a pair of bugfixes

From
Jeff King <peff@peff.net>
Date
Nov 1, 2022, 08:01 UTC
Message-ID
<Y2DSSM8ujceSgp+b@coredump.intra.peff.net>
In-Reply-To
<cover.1667260044.git.me@ttaylorr.com>
On Mon, Oct 31, 2022 at 07:47:33PM -0400, Taylor Blau wrote:
Show 5 quoted lines
> The documentation on how to use the scripts in 'todo' has a couple of
> small typos that make it confusing when generating the Meta/redo-jch.sh
> and Meta/redo-seen.sh scripts the first time.
> 
> Correct these to avoid any confusion in the future.

Thanks for writing these up. A little back-story: Taylor and I had looked at this together off-list, because the results of following the documentation to the letter made little sense.

So both look good to me, with the giant grain of salt that I was party to the original head-scratching that led to the patches. Given that there's no urgency (unless you are hit by a bus in the next few weeks), it probably makes sense to queue these fixes and wait for Junio to review and (hopefully) merge them.

There is one thing we wondered about, and I think only Junio can answer. The instructions after these patches yield two files, redo-jch.sh and redo-seen.sh. The first one has two sections separated by a "###" marker: the ones that are in 'next', and the ones that are in 'jch'. The third ones has topics that are only in 'seen' (which also contains all of the others).

Why not have a single file with all of the topics, with two "###" markers? I.e., something like:

  # build the topic list from what's in 'seen' now
  Meta/Reintegrate master..seen >Meta/redo.sh
  # rebuild the first part of jch, which is everything in next
  git checkout -B master jch
  Meta/redo.sh -c1
  # now build actual next, which should end up with the same tree
  git checkout next
  git merge master ;# if necessary
  Meta/redo.sh -c1 -e ;# -e to annotate any topics
  git diff jch next ;# should be identical
  # now build the rest of jch
  git checkout jch
  Meta/redo.sh -c2
  # now build seen
  git checkout -B seen master
  Meta/redo.sh ;# no -c, do it all

I _think_ the two are equivalent, and it seems more convenient to keep all of the topic names in one file (since they'd migrate across the cut to go from seen to jch, then jch to next). But maybe you (Junio) find it more convenient to keep them separate. The 'seen' list is a bit more fluid, and I'm sure you figured out how to copy lines between two different buffers in emacs. :)

Mostly just curious.
-Peff
Previous: Taylor BlauNext: Taylor Blau
Message 4 of 8 in “Documentation/howto/maintain-git.txt: a pair of bugfixes”
  1. 0/2 Documentation/howto/maintain-git.txt: a pair of bugfixesTaylor Blau, Oct 31, 2022
  2. 1/2 Documentation: build redo-jch.sh from master..jchTaylor Blau, Oct 31, 2022
  3. 2/2 Documentation: build redo-seen.sh from jch..seenTaylor Blau, Oct 31, 2022
  4. Jeff KingNov 1, 2022
  5. Taylor BlauNov 1, 2022
  6. Junio C HamanoNov 1, 2022
  7. Taylor BlauNov 1, 2022
  8. Jeff KingNov 2, 2022

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.