# . ~/.stgit-completion.bash
_stg_commands="
- add
- applied
- assimilate
branch
delete
diff
clean
clone
+ coalesce
commit
- cp
+ edit
export
files
float
rebase
refresh
rename
+ repair
resolved
- rm
series
show
sink
status
sync
top
- unapplied
uncommit
unhide
"
# repository commands
id) _stg_patches $command _all_patches ;;
# stack commands
+ coalesce) _stg_patches $command _applied_patches ;;
float) _stg_patches $command _all_patches ;;
goto) _stg_patches $command _all_other_patches ;;
hide) _stg_patches $command _unapplied_patches ;;
unhide) _stg_patches $command _hidden_patches ;;
# patch commands
delete) _stg_patches $command _all_patches ;;
- export) _stg_patches $command _applied_patches ;;
+ edit) _stg_patches $command _applied_patches ;;
+ export) _stg_patches $command _all_patches ;;
files) _stg_patches $command _all_patches ;;
log) _stg_patches $command _all_patches ;;
mail) _stg_patches $command _all_patches ;;
# working-copy commands
diff) _stg_patches_options $command _applied_patches "-r --range" ;;
resolved) _complete_files $command "$(_conflicting_files)" ;;
- add) _complete_files $command "$(_unknown_files)" ;;
-# rm) _complete_files $command "$(_known_files)" ;;
# commands that usually raher accept branches
branch) _complete_branch $command _all_branches ;;
rebase) _complete_branch $command _all_branches ;;