Emacs has a beautiful feature: in the *vc-diff* buffer (generated by vc-diff either by C-x v = in a file buffer or by = in a *vc-dir* buffer), kill unwanted hunks with k (i.e., diff-hunk-kill) and then commit the remaining hunks with C-x v v (i.e., vc-next-action). If you don't know about it -- try it, it is incredibly useful!
Alas, it does not work for me on windows: after C-c C-c (i.e., log-edit-done) in *vc-log*, I get
vc-do-command: Failed (status 1): c:/Users/ssteingold/AppData/Local/Git/bin/git.exe --no-pager apply --cached c:/msys64/tmp/git-patchPbbWgJ
and *vc* buffer is
error: patch failed: fxpy/model.py:1071 error: fxpy/model.py: patch does not apply Additionally:
- Software:
- normal commits work just fine, using
vc-next-actionfrom either file buffer or*vc-dir*. - All my files have unix line terminators (
LF) as indicated in the mode line as(Unix) - I set
autocrlftofalseglobally - I have
(prefer-coding-system 'utf-8-unix)in.emacs vc-coding-system-inherit-eolist, I did not touch it- When I add
"-v"togit applyinvocation invc-git-checkin(vc-git.el),*vc*buffer containserror: while searching for:.....and every line in.....is terminated with?- which seems to indicate line-ending problems... (!!!)
Q: how do I fix this? (This is a work box, I cannot send email from Emacs, so I cannot even file an Emacs bug report!)
emacs-29branch). Would be nice if you found the time to double-check, though.