Add an alias to show a git log with all the branches and remotes

This commit is contained in:
Aziz Light
2013-10-20 17:34:27 +02:00
parent 6b9c9cae49
commit 8d04265578
2 changed files with 4 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ git_reset_last_commit="grsl"
git_merge_alias="gm"
git_cherry_pick_alias="gcp"
git_log_alias="gl"
git_log_all_alias="gla"
git_log_stat_alias="gls"
git_log_graph_alias="glg"
git_show_alias="gsh"

View File

@@ -103,6 +103,9 @@ if [ "$git_setup_aliases" = "yes" ]; then
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"
# Standard commands
__git_alias "$git_clone_alias" "git" 'clone'
__git_alias "$git_fetch_alias" "git" 'fetch'