From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#51964: 29.0.50; Wishlist: It'd be nice with a pull+push command in vc-dir Date: Fri, 19 Nov 2021 10:28:41 +0200 Organization: LINKOV.NET Message-ID: <86czmwr2u2.fsf@mail.linkov.net> References: <87wnl4wryu.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38232"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 51964@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 19 09:40:28 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnzRb-0009kQ-EX for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Nov 2021 09:40:27 +0100 Original-Received: from localhost ([::1]:36294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnzRZ-0002RV-N4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Nov 2021 03:40:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnzRF-0002Ga-Dq for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2021 03:40:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnzRF-000695-5M for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2021 03:40:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnzRF-00071f-23 for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2021 03:40:05 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Nov 2021 08:40:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51964 X-GNU-PR-Package: emacs Original-Received: via spool by 51964-submit@debbugs.gnu.org id=B51964.163731117426903 (code B ref 51964); Fri, 19 Nov 2021 08:40:05 +0000 Original-Received: (at 51964) by debbugs.gnu.org; 19 Nov 2021 08:39:34 +0000 Original-Received: from localhost ([127.0.0.1]:37929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnzQi-0006zn-Qq for submit@debbugs.gnu.org; Fri, 19 Nov 2021 03:39:34 -0500 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:50225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnzQf-0006zK-J4 for 51964@debbugs.gnu.org; Fri, 19 Nov 2021 03:39:30 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id ADE57E0010; Fri, 19 Nov 2021 08:39:21 +0000 (UTC) In-Reply-To: <87wnl4wryu.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 19 Nov 2021 07:59:53 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220388 Archived-At: > `+' 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. > > Or perhaps more generally -- vc-git-pull could have a callback function > that's called after it's done, and it could be called with the status > (success or not) as a parameter? Then people could write their own > functions to react to the aftermath of a pull. Shouldn't the pull+push command be customizable to allow "git pull --rebase", especially useful in this workflow?