fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Farhood EtaatiAdds git subtree completion48306409e

master
2.9 KiB27 linesraw
1complete -f -c git -a subtree -d 'Manage git subtrees'
2# Git subtree common completions
3complete -f -c git -n '__fish_git_using_command subtree' -s q -l quiet -d 'Suppress output'
4complete -f -c git -n '__fish_git_using_command subtree' -s d -l debug -d 'Debug output'
5complete -f -c git -n '__fish_git_using_command subtree' -s P -l path -d 'Path to the subtree'
6
7# Git subtree subcommands
8complete -f -c git -n '__fish_git_using_command subtree' -a add -d "Add a new subtree to the repository"
9complete -f -c git -n '__fish_git_using_command subtree' -a merge -d "Merge changes from a subtree into the repository"
10complete -f -c git -n '__fish_git_using_command subtree' -a split -d "Extract a subtree from the repository"
11complete -f -c git -n '__fish_git_using_command subtree' -a pull -d "Fetch and integrate changes from a remote subtree"
12complete -f -c git -n '__fish_git_using_command subtree' -a push -d "Push changes to a remote subtree"
13
14# Completions for push and split subcommands
15complete -f -c git -n '__fish_git_using_command subtree; and __fish_seen_subcommand_from push split' -l annotate -d 'Annotate the commit'
16complete -f -c git -n '__fish_git_using_command subtree; and __fish_seen_subcommand_from push split' -s b -l branch -d 'Branch to split'
17complete -f -c git -n '__fish_git_using_command subtree; and __fish_seen_subcommand_from push split' -l ignore-joins -d 'Ignore joins during history reconstruction'
18complete -f -c git -n '__fish_git_using_command subtree; and __fish_seen_subcommand_from push split' -l onto -d 'Specify the commit ID to start history reconstruction'
19complete -f -c git -n '__fish_git_using_command subtree; and __fish_seen_subcommand_from push split' -l rejoin -d 'Merge the synthetic history back into the main project'
20complete -f -c git -n '__fish_git_using_command subtree; and __fish_seen_subcommand_from push split; and __fish_contains_opt rejoin' -l squash -d 'Merge subtree changes as a single commit'
21complete -f -c git -n '__fish_git_using_command subtree; and __fish_seen_subcommand_from push split; and __fish_contains_opt rejoin' -l no-squash -d 'Do not merge subtree changes as a single commit'
22complete -f -c git -n '__fish_git_using_command subtree; and __fish_seen_subcommand_from push split; and __fish_contains_opt rejoin' -s m -l message -d 'Use the given message as the commit message for the merge commit'
23
24# Completion for add and merge subcommands
25complete -f -c git -n '__fish_git_using_command subtree; and __fish_seen_subcommand_from add merge' -l squash -d 'Merge subtree changes as a single commit'
26complete -f -c git -n '__fish_git_using_command subtree; and __fish_seen_subcommand_from add merge' -l no-squash -d 'Do not merge subtree changes as a single commit'
27complete -f -c git -n '__fish_git_using_command subtree; and __fish_seen_subcommand_from add merge' -s m -l message -d 'Use the given message as the commit message for the merge commit'