X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/1c804cbaa55ba2dcdc6bfc33d6f4c86a68e0fcdc..490add07e9490b2654d22ca2cd3b8dcc0cc0cc9b:/contrib/stgit-completion.bash?ds=sidebyside diff --git a/contrib/stgit-completion.bash b/contrib/stgit-completion.bash index 2d0d5f2..b3b23d4 100644 --- a/contrib/stgit-completion.bash +++ b/contrib/stgit-completion.bash @@ -13,7 +13,6 @@ _stg_commands=" add applied - assimilate branch delete diff @@ -21,6 +20,7 @@ _stg_commands=" clone commit cp + edit export files float @@ -41,6 +41,7 @@ _stg_commands=" rebase refresh rename + repair resolved rm series @@ -108,7 +109,7 @@ _all_other_patches () _all_branches () { local g=$(_gitdir) - [ "$g" ] && (cd .git/patches/ && echo *) + [ "$g" ] && (cd $g/patches/ && echo *) } _conflicting_files () @@ -247,6 +248,7 @@ _stg () unhide) _stg_patches $command _hidden_patches ;; # patch commands delete) _stg_patches $command _all_patches ;; + edit) _stg_patches $command _applied_patches ;; export) _stg_patches $command _applied_patches ;; files) _stg_patches $command _all_patches ;; log) _stg_patches $command _all_patches ;;