8000 Git mergetool completion by gladhorn · Pull Request #3226 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

Git mergetool completion#3226

Merged
faho merged 2 commits intofish-shell:masterfrom
gladhorn:git_mergetool
Jul 15, 2016
Merged

Git mergetool completion#3226
faho merged 2 commits intofish-shell:masterfrom
gladhorn:git_mergetool

Conversation

@gladhorn
Copy link
Contributor

auto complete "git mergetool" (optionally with --tool= and unmerged files)

function __fish_git_mergetools
set -l tools diffuse diffmerge ecmerge emerge kdiff3 meld opendiff tkdiff vimdiff gvimdiff xxdiff araxis p4merge bc codecompare
for tool in $tools
command --search $tool >/dev/null; and begin
Copy link
Member

Choose a reason for hiding this comment

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

Since you are doing begin/end anyway, this would be nicer with if command.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I agree :)

gladhorn added 2 commits July 15, 2016 21:40
The list of tools is stole from the bash completion file that comes with
git.
@faho faho merged commit 6b99af0 into fish-shell:master Jul 15, 2016
@faho
Copy link
Member
faho commented Jul 15, 2016

Merged, thanks!

@faho faho added this to the next-2.x milestone Jul 15, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0