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

Re: [PATCH v2] bugreport: use quoted line prefixes

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 15, 2025, 16:18 UTC
Message-ID
<xmqq5xeosgm3.fsf@gitster.g>
In-Reply-To
<52a6177e706d8653251c61bc660f10b703ea6a9e.1755256099.git.code@khaugsbakk.name>
kristofferhaugsbakk@fastmail.com writes:
> From: Kristoffer Haugsbakk <code@khaugsbakk.name>
>
> Quoted line prefixes make it easier to distinguish between the questions
> and the answers, both for the reporter and for the readers.

This may improve things a bit, but the #1 thing that made the reports most hard to read for me, while reading bugreport output posted here over time, is lack of a blank line between each question and its answer (and the tail end of an answer and the beginning of the next question).

I wonder if there are things we can do to encourage reporters to leave blank lines around what they write?

Show 5 quoted lines
> -"Thank you for filling out a Git bug report!\n"
> -"Please answer the following questions to help us understand your issue.\n"
> +"> Thank you for filling out a Git bug report!\n"
> +"> Please answer the following questions to help us understand your issue.\n"
>  "\n"

I do not see a need to quote the above. Nobody will write in this space between the above introductory text and the first question below.

> -"What did you do before the bug happened? (Steps to reproduce your issue)\n"
> +"> What did you do before the bug happened? (Steps to reproduce your issue)\n"
>  "\n"

Here is one blank line between this question and the next question. If the reporter typed on that blank line, we end up with an uninterrupted sequence of questions and answers.

I wonder if it helps if we did:
 - Give more blank lines upfront, like three lines, making it
	> We ask you a question here...
	> We ask you another question here...
 - Give a stronger prompt to guide them where to write their answer.
	Q1. We ask you a question here...
	A1.
	Q2. We ask you another question here...

I suspec that the latter might result in what we want, without annoying the repoter too much. We could also do

	> We ask you a question here ...
        (please write your answer here)
	> We ask you another question here ...

but that would make them remove that place-holding prompt, which would be annoying, and at the same time, tempt them to remove the blank lines around it. The fewer things we make them remove, the better chance we have to achieve what we want, I think.

Thanks.
Previous: kristofferhaugsbakk@fastmail.comNext: Kristoffer Haugsbakk
Message 3 of 5 in “bugreport: add quoted line prefixes”
  1. bugreport: add quoted line prefixesFelipe Contreras, Jul 23, 2021
  2. bugreport: use quoted line prefixeskristofferhaugsbakk@fastmail.com, Aug 15, 2025
  3. Junio C HamanoAug 15, 2025
  4. Kristoffer HaugsbakkAug 23, 2025
  5. bugreport: use quoted line prefixes & more blank lineskristofferhaugsbakk@fastmail.com, Aug 22, 2025

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.