From 796958efa2be317ea6f412f6299c5ed45c1373b3 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Sat, 19 Nov 2022 17:12:54 +0200 Subject: push: add option `--pull` Add a new option `--pull` to `pkgdev push` to pull all changes before starting the scan & push. This is very useful for most normal usage for developers. This can be also set in config, but adding the line: push.pull = Resolves: https://github.com/pkgcore/pkgdev/issues/102 Signed-off-by: Arthur Zamarin --- data/share/bash-completion/completions/pkgdev | 1 + data/share/zsh/site-functions/_pkgdev | 1 + 2 files changed, 2 insertions(+) (limited to 'data') diff --git a/data/share/bash-completion/completions/pkgdev b/data/share/bash-completion/completions/pkgdev index 1408292..9094ab1 100644 --- a/data/share/bash-completion/completions/pkgdev +++ b/data/share/bash-completion/completions/pkgdev @@ -134,6 +134,7 @@ _pkgdev() { subcmd_options=" -A --ask -n --dry-run + --pull " COMPREPLY+=($(compgen -W "${subcmd_options}" -- "${cur}")) diff --git a/data/share/zsh/site-functions/_pkgdev b/data/share/zsh/site-functions/_pkgdev index f2c95bc..32b927f 100644 --- a/data/share/zsh/site-functions/_pkgdev +++ b/data/share/zsh/site-functions/_pkgdev @@ -77,6 +77,7 @@ case $state in $base_options \ {'(--ask)-A','(-A)--ask'}'[confirm pushing commits with QA errors]' \ {'(--dry-run)-n','(-n)--dry-run'}'[pretend to push commits]' \ + '--pull[run git pull --rebase before scanning]' \ && ret=0 ;; (showkw) -- cgit v1.2.3-65-gdbad