Antoine Kalmbach writes: > Philip Kaludercic writes: > >> Yes, and I began implementing a different approach (as mentioned on the >> emacs-devel thread), which I have since abandoned. If you haven't >> written anything yet, and don't insist on it, I could propose to start >> sketching out your suggestions. > > Sure! I was thinking we could start from a very basic command, call it > `vc-prepare-patch` as per your suggestion. Since VC uses generics, we > can dispatch to backend-specific implementations, something like this, > with Git: > > 1. `M-x vc-prepare-patch` > 2. Dispatch to `vc-git-prepare-patch` > 3. Git wants a revision range, so interactively prompt for that > (e.g. `HEAD^`, `abcd1234..ghjk5678`, or `-1`) > 4. `call-process` to `git format-patch $REV`, and so forth, get the > list of files. > 5. Loop each file in `message-mode`. `C-c C-c` sends and goes to the > next patch, `C-c C-k` cancels the whole thing. Sorry for the delay, here is a first approximation of this idea: