Re: [PATCH v3] add-patch: edit the hunk again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 01, 2024 at 10:58:15AM -0700, Junio C Hamano wrote:

> I would not
> complain if we offered the feature to re-edit

I'm using this:

   $ GIT_EDITOR='bash -c "vim \"$1\" && cp -f $1 /tmp/backup"' git add -p

That way, I have a copy of the edited hunk in case I want to try again
or review it.  In that case, I can simply try again and reload from
"/tmp/backup".

I'm sure there's a more clever way, but I haven't come up with
anything more elegant.

Maybe interactive.editor, apply.editor, add.editor?




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux