[Top][All Lists]

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

Re: On the adoption of transient.el

From: Juri Linkov
Subject: Re: On the adoption of transient.el
Date: Sun, 31 Jul 2022 23:03:22 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

>> Currently I'm finishing implementation of a new vc command
>> that will allow committing from a diff buffer.  So for
>> example, after displaying all changes with e.g. 'C-x v D'
>> you can remove some unneeded hunks (with e.g. 'M-k' 'diff-
>> hunk-kill'), then on the remaining hunks type 'C-c C-c' in
>> the diff buffer. It will create a usual *vc-log* buffer
>> where typing 'C-c C-c' will commit only changes from the
>> diff buffer.  Internally it works by running three git
>> commands:
>> `git stash push -m stash_name -- list_of_file_names_from_diff`
>> `cat diff_buffer.patch | git am` # should also handle return code
>> `git stash pop -q`
> do you have any news on this command you were working on?

The command is basically ready and I'll give it more testing
and commit it soon in a week after vacation.  But please note
that it will use `git apply --cached && git commit`
instead of `git stash`.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]