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

Re: [PATCH] doc: hint about GIT_DEBUGGER

From
Emily Shaffer <emilyshaffer@google.com>
Date
May 20, 2019, 20:38 UTC
Message-ID
<20190520203843.GA64994@google.com>
In-Reply-To
<CABPp-BHZkQG+pr4MmVGahHDR56grqvRsYNxZ=uShK70APzj9LA@mail.gmail.com>
[snip]
Show 16 quoted lines
> > + - You can launch gdb around your program using the shorthand GIT_DEBUGGER.
> > +   Run `GIT_DEBUGGER=1 ./bin-wrappers/git foo` to simply use gdb as is, or
> > +   run `GIT_DEBUGGER=debugger-binary some-args ./bin-wrappers/git foo` to
> 
> Missing some quotes around debugger-binary and some-args:
> +   run `GIT_DEBUGGER="debugger-binary some-args" ./bin-wrappers/git foo` to
> 
> Also, one thing I always wonder about with command documentation like
> this is whether people will understand that "debugger-binary",
> "some-args", and "foo" are just placeholders rather than literal text
> -- and that everything else is literal text and not meant to be
> placeholders.  Does it make since to include a couple examples, or
> perhaps modify the text somehow to avoid confusion between
> placeholders and literals, or maybe just tell me I overthinking this?
> (I've been bit by similar problems in other contexts, so I'm just
> flagging it for you to consider).

It's a good point. I like to use placeholders that don't sound like a real command (and failed a little here), for example, `GIT_DEBUGGER=my-cool-debugger some-various-args`. It can be a challenge to choose a placeholder that sounds fake but also doesn't sound too informal (the above feels informal to me). I think the best way is to show an example, that's a good idea. I'll come up with one and send another round this week.

Thanks a bunch for having a look.
 - Emily
> 
> Elijah
Previous: Elijah NewrenNext: Emily Shaffer
Message 3 of 10 in “doc: hint about GIT_DEBUGGER”
  1. doc: hint about GIT_DEBUGGEREmily Shaffer, May 17, 2019
  2. Elijah NewrenMay 18, 2019
  3. Emily ShafferMay 20, 2019
  4. doc: hint about GIT_DEBUGGEREmily Shaffer, May 21, 2019
  5. Elijah NewrenMay 21, 2019
  6. Emily ShafferMay 21, 2019
  7. doc: hint about GIT_DEBUGGER in CodingGuidelinesEmily Shaffer, May 23, 2019
  8. Eric SunshineMay 23, 2019
  9. Emily ShafferMay 28, 2019
  10. doc: hint about GIT_DEBUGGER in CodingGuidelinesEmily Shaffer, May 28, 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.