emacs-devel
[Top][All Lists]
Advanced

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

Re: master 4803fba487 1/2: 'C-x v v' on a diff buffer commits it as a pa


From: Eli Zaretskii
Subject: Re: master 4803fba487 1/2: 'C-x v v' on a diff buffer commits it as a patch (bug#52349)
Date: Mon, 29 Aug 2022 19:46:40 +0300

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: emacs-devel@gnu.org
> Date: Mon, 29 Aug 2022 16:48:29 +0200
> 
> Juri Linkov <juri@jurta.org> writes:
> 
> >     'C-x v v' on a diff buffer commits it as a patch (bug#52349)
> 
> Excellent!  This is going to save me a lot of work in the future.

Bother: This is only supported for Git, which is against the spirit of
VC, and definitely against the spirit of "C-x v v".

Why cannot this be implemented for every other VCS?  Given diffs in a
buffer, it should be as simple as running the Patch utility via
shell-command-on-region, then committing the results.  Git has a
special command for that, but we don't need a special command for
other VCSes, if they don't have the equivalent of "git apply".  (I'm
guessing that "git apply" simply runs Patch under the hood.)

Can we please implement this for other VCSes as well?



reply via email to

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