From: "Rubén Justo" <rjusto@gmail.com>
To: phillip.wood@dunelm.org.uk, Git List <git@vger.kernel.org>
Cc: Junio C Hamano <gitster@pobox.com>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>
Subject: Re: [PATCH v3] add-patch: edit the hunk again
Date: Wed, 2 Oct 2024 19:27:34 +0200 [thread overview]
Message-ID: <2ed4f980-a294-4a39-9c74-f63ce9af1f70@gmail.com> (raw)
In-Reply-To: <9c7af640-ee3a-4a17-84f6-f56fee7efe37@gmail.com>
On Tue, Oct 01, 2024 at 11:03:10AM +0100, Phillip Wood wrote:
> I'm afraid I still don't think that changing the default is a good idea as
> it is often very difficult to correct a badly edited hunk.
This series isn't about how hard it is to fix a badly edited hunk.
> In [1] you say you discarded that idea because the wording was too verbose
Not really. I still believe that regaining the original intention of
"no" is a better option than adding new options to the interface.
I am not opposed to that change, I just think it's an unnecessary
complication.
A user who experiences problems with a badly edited hunk, edited by
themselves, will probably encounter similar issues as they would when
editing the original hunk. I think.
I don't think reconstructing a patch is a realistic (sensible)
scenario that we should be concerned about.
The small change in the message, in this iteration, adds a bit of
clarity for them, I think:
> > @@ -1286,11 +1287,17 @@ static int edit_hunk_loop(struct add_p_state *s,
> > * of the word "no" does not start with n.
> > */
> > res = prompt_yesno(s, _("Your edited hunk does not apply. "
> > - "Edit again (saying \"no\" discards!) "
> > + "Edit again (saying \"no\" discards your edits!) "
> > "[y/n]? "));
>
> [1]
> https://lore.kernel.org/git/6f392446-10b4-4074-a993-97ac444275f8@gmail.com
prev parent reply other threads:[~2024-10-02 17:27 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-15 11:38 [PATCH] add-patch: edit the hunk again Rubén Justo
2024-09-16 13:33 ` Phillip Wood
2024-09-16 17:35 ` Junio C Hamano
2024-09-16 22:09 ` Rubén Justo
2024-09-18 10:06 ` phillip.wood123
2024-09-18 17:46 ` Rubén Justo
2024-09-18 17:51 ` [PATCH v2] " Rubén Justo
2024-09-23 9:07 ` phillip.wood123
2024-09-23 16:02 ` Junio C Hamano
2024-09-24 22:54 ` Rubén Justo
2024-10-01 10:02 ` Phillip Wood
2024-10-02 16:36 ` Rubén Justo
2024-09-28 14:30 ` [PATCH v3] " Rubén Justo
2024-10-01 10:03 ` Phillip Wood
2024-10-01 17:58 ` Junio C Hamano
2024-10-02 17:34 ` Rubén Justo
2024-10-02 17:27 ` Rubén Justo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2ed4f980-a294-4a39-9c74-f63ce9af1f70@gmail.com \
--to=rjusto@gmail.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=phillip.wood@dunelm.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).