X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/1c804cbaa55ba2dcdc6bfc33d6f4c86a68e0fcdc..f3684678515d865fa1a5eadc39bf680c83dd92e8:/contrib/stgit-completion.bash diff --git a/contrib/stgit-completion.bash b/contrib/stgit-completion.bash index 2d0d5f2..b1d2730 100644 --- a/contrib/stgit-completion.bash +++ b/contrib/stgit-completion.bash @@ -21,6 +21,7 @@ _stg_commands=" clone commit cp + edit export files float @@ -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 ;;