Thread (8 messages) flat view 8 messages, 4 authors, 2020-09-05

Re: git add intent-to-add then git add patch no longer allows edit

From: Phillip Wood <hidden>
Date: 2020-08-24 17:29:22

Possibly related (same subject, not in this thread)

Hi Raymond

On 24/08/2020 17:23, Raymond E. Pasco wrote:
On Sun Aug 23, 2020 at 12:03 PM EDT, Phillip Wood wrote:
quoted
I think I was talking about edit rather than split. I'd forgotten that
it used to work with i-t-a additions. I just checked seen and it seems
to be working again since dscho's patch although the user is presented
with the full diff header rather than just a hunk header in the editor.
As you say once the user has staged some part of the diff the rest falls
out naturally.
Which topic is this? I can't find one where it works (it's always
"Sorry, cannot edit this hunk" on seen 2.28.0.508.g7d1bebc7fe).
The patch I was referring to is 2c8bd8471a ("checkout -p: handle new 
files correctly", 2020-05-27)

I tested seen at 3981657b13 ("Merge branch 'rp/apply-cached-doc' into 
seen", 2020-08-21). I was using the C version of 'add -p' which is 
opt-in at the moment by setting add.interactive.usebuiltin=true in your 
config (or with git -c). I hope that helps, I'm going off line now for 
10-14 days

Best Wishes

Phillip
Yeah, it's split that would be a problem, edit just stages and moves on.
Split would be nice, but I don't actually recall it ever working before
- it doesn't work now on diffs from actual blank files. Getting edit
back (if there's a topic that does this already) makes it work for my
usage.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help