[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#51964: 29.0.50; Wishlist: It'd be nice with a pull+push command in v
From: |
Juri Linkov |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
> `+' 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?