Skip to content

Commit

Permalink
Merge pull request #319 from telzhov/master
Browse files Browse the repository at this point in the history
Fixed completions for 'gl' and 'gla' aliases

thanks @telzhov for your patience
  • Loading branch information
ghthor authored Feb 27, 2024
2 parents b2b666b + dac7e1e commit bb7fdaa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/git/aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,12 @@ if [ "$git_setup_aliases" = "yes" ]; then
__git_alias "$git_restore_alias" 'git' 'restore'

# 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_alias "$git_log_alias" 'git' "$git_log_command"
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_alias "$git_log_alias" 'git' "${git_log_command[@]}"

# 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
__git_alias "$git_clone_alias" 'git' 'clone'
Expand Down

0 comments on commit bb7fdaa

Please sign in to comment.