Skip to content

Allow better completion for git submodules#8716

Merged
krobelus merged 3 commits into
fish-shell:masterfrom
Fymyte:autocompletion/git
Feb 11, 2022
Merged

Allow better completion for git submodules#8716
krobelus merged 3 commits into
fish-shell:masterfrom
Fymyte:autocompletion/git

Conversation

@Fymyte
Copy link
Copy Markdown
Contributor

@Fymyte Fymyte commented Feb 11, 2022

Description

I have added missing subcommand for git submodules + add git submodules completion for command which requires one

TODOs:

  • Changes to fish usage are reflected in user documentation/manpages.
  • Tests have been added for regressions fixed
  • User-visible changes noted in CHANGELOG.rst

Comment thread share/completions/git.fish Outdated
complete -f -c git -n "__fish_git_using_command submodule; and not __fish_seen_subcommand_from $submodulecommands" -a summary -d 'Show commit summary'
complete -f -c git -n "__fish_git_using_command submodule; and not __fish_seen_subcommand_from $submodulecommands" -a foreach -d 'Run command on each submodule'
complete -f -c git -n "__fish_git_using_command submodule; and not __fish_seen_subcommand_from $submodulecommands" -a sync -d 'Sync submodules\' URL with .gitmodules'
complete -f -c git -n "__fish_git_using_command submodule; and not __fish_seen_subcommand_from $submodulecommands" -a absorbgitdirs -d 'Move submodule\'s git directory to current .git/module directory'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a nice way to put this, thanks!

@krobelus krobelus merged commit 2164d40 into fish-shell:master Feb 11, 2022
@krobelus krobelus added this to the fish 3.4.0 milestone Feb 11, 2022
@Fymyte Fymyte deleted the autocompletion/git branch February 13, 2022 00:22
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants