Merge pull request #319 from telzhov/master

Fixed completions for 'gl' and 'gla' aliases

thanks @telzhov for your patience
This commit is contained in:
Will Owens
2024-02-27 06:19:37 -05:00
committed by GitHub

View File

@@ -117,11 +117,12 @@ if [ "$git_setup_aliases" = "yes" ]; then
__git_alias "$git_restore_alias" 'git' 'restore' __git_alias "$git_restore_alias" 'git' 'restore'
# Custom default format for git log # Custom default format for git log
git_log_command="log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" git_log_command=('log' '--graph' "--pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"
__git_alias "$git_log_alias" 'git' "$git_log_command" '--abbrev-commit')
__git_alias "$git_log_alias" 'git' "${git_log_command[@]}"
# Same as the above, but displays all the branches and remotes # Same as the above, but displays all the branches and remotes
__git_alias "$git_log_all_alias" 'git' "$git_log_command" '--branches' '--remotes' __git_alias "$git_log_all_alias" 'git' "${git_log_command[@]}" '--branches' '--remotes'
# Standard commands # Standard commands
__git_alias "$git_clone_alias" 'git' 'clone' __git_alias "$git_clone_alias" 'git' 'clone'