From 8feed75d3a965d27ef5ddc3401c4e6f5bdd315c3 Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Nov 22 2016 06:50:03 +0000 Subject: Add --with-changelog to shell completion Signed-off-by: Chenxiong Qi --- diff --git a/conf/bash-completion/fedpkg.bash b/conf/bash-completion/fedpkg.bash index 779ae9d..e4a55c6 100644 --- a/conf/bash-completion/fedpkg.bash +++ b/conf/bash-completion/fedpkg.bash @@ -119,7 +119,7 @@ _fedpkg() after="package" ;; commit|ci) - options="--push --clog --raw --tag" + options="--push --clog --raw --tag --with-changelog" options_string="--message" options_file="--file" after="file" diff --git a/conf/zsh-completion/_fedpkg b/conf/zsh-completion/_fedpkg index ac24300..808a443 100644 --- a/conf/zsh-completion/_fedpkg +++ b/conf/zsh-completion/_fedpkg @@ -113,6 +113,7 @@ _fedpkg-commit () { '(-m --message)'{-m,--message}'[use the given commit message]:message' \ '(-F --file)'{-F,--file}'[take the commit message from the given file]:file:_files' \ '(-p --push)'{-p,--push}'[commit and push as one action]' \ + '(--with-changelog)'{--with-changelog}'[get the last changelog from SPEC as commit message body]' \ '*:file:_files' } @@ -407,6 +408,7 @@ _fedpkg() { '(- :)'{-h,--help}'[show help message and exit]' \ '(-C --config)'{-C,--config}'[specify a config file to use]:config file:_files' \ '--dist[override the discovered distribution]:distribution' \ + '--release[override the discovered release]:release' \ '--user[override the discovered user name]:user' \ '--path[define the directory to work in (defaults to cwd)]:working direcory:_directories' \ '(-q)-v[run with verbose debug output]' \