From: Juri Linkov <juri@linkov.net>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 51964@debbugs.gnu.org
Subject: bug#51964: 29.0.50; Wishlist: It'd be nice with a pull+push command in vc-dir
Date: Sat, 24 Sep 2022 20:36:37 +0300 [thread overview]
Message-ID: <86h70w8y12.fsf@mail.linkov.net> (raw)
In-Reply-To: <87pmfkykqw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 24 Sep 2022 15:17:43 +0200")
>> `+' and `P' in vc-dir-mode are nice, but it means that I have to wait
>> until `+' is done first. So what I want is a command that does the
>> pull, and if there's no conflicts, then do the push.
>>
>> It seems like this shouldn't be too difficult -- vc-exec-after should be
>> able to do this somehow.
>
> I've now done this in Emacs 29.
I wonder why this couldn't be implemented by using the existing backend
functions 'pull' and 'push'? Then the only thing required for a backend
to support 'vc-pull-and-push' is just to return a process from the
backend function 'pull'. IOW, I don't see a problem of moving
the logic of vc-git-pull-and-push to vc-pull-and-push.
next prev parent reply other threads:[~2022-09-24 17:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-19 6:59 bug#51964: 29.0.50; Wishlist: It'd be nice with a pull+push command in vc-dir Lars Ingebrigtsen
2021-11-19 8:28 ` Juri Linkov
2021-11-19 8:42 ` Eli Zaretskii
2021-11-19 10:20 ` Andreas Schwab
2021-11-20 8:30 ` Lars Ingebrigtsen
2022-09-24 13:17 ` Lars Ingebrigtsen
2022-09-24 17:36 ` Juri Linkov [this message]
2022-09-24 18:30 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86h70w8y12.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=51964@debbugs.gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).