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

Re: [PATCH] bisect: revise manpage

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jun 26, 2015, 16:35 UTC
Message-ID
<vpq381etoks.fsf@anie.imag.fr>
In-Reply-To
<558D67FD.2000607@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
> I didn't like this example so much because (1) the code snippet is
> pretty trivial, and (2) the explanation afterwards is more of a general
> explanation of `git bisect` than a description of this particular
> example.
I agree that the explanations were redundant. I removed it.
> If you want to keep this example, how about making it a little bit more
> interesting? Perhaps use `git bisect terms` instead of new/old,
I now have both.
> and a little motivational text showing how the alternate names make
> the commands clearer?

Well, actually the motivational text would be essentially what was already said.

Show 6 quoted lines
> 1. I found it confusing that `git bisect terms` lists its arguments in
> the order `<term-new> <term-old>`. I think that listing them in
> "chronological" order would have been a lot more intuitive. But I expect
> this choice was made because `git bisect start` takes optional arguments
> in that order, so the inconsistency might be worse than the backwardness
> of this single command's arguments.

Yes, I think keeping the order of 'git bisect start' is good. Junio also mentionned alphabetic order (bad -> good, new -> old).

Show 5 quoted lines
> 2. When I was describing "old/new", I kept wishing that I could type
> "before/after" instead, because those terms seemed to agree better with
> the prose description of what "old/new" mean. I wonder if "before/after"
> might be better names for commits determined to be before/after the
> change being sought?

I like old/new essentially because they are very short. I would keep the code as-is for now, but it's very easy to add a before/after couple of terms later if needed. If others think before/after are better, it's still time to change it.

> Oh and I just noticed that `git bisect terms` is missing from the
> synopsis at the top of the man page.
Fixed.
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Michael HaggertyNext: Junio C Hamano
Message 12 of 13 in “bisect: revise manpage”
  1. bisect: revise manpageMichael Haggerty, Jun 26, 2015
  2. Christian CouderJun 26, 2015
  3. Matthieu MoyJun 26, 2015
  4. Christian CouderJun 26, 2015
  5. Michael HaggertyJun 26, 2015
  6. Christian CouderJun 26, 2015
  7. Matthieu MoyJun 26, 2015
  8. Junio C HamanoJun 26, 2015
  9. 3/7 Documentation/bisect: revise overall contentMatthieu Moy, Jun 26, 2015
  10. Matthieu MoyJun 26, 2015
  11. Michael HaggertyJun 26, 2015
  12. Matthieu MoyJun 26, 2015
  13. Junio C HamanoJun 26, 2015

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.