Merge pull request #118 from AzizLight/pretty-git-log-all

Add an alias to show a git log with all the branches and remotes
This commit is contained in:
Nathan Broadbent
2013-10-22 22:15:19 -07:00
2 changed files with 4 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ git_merge_no_fast_forward_alias="gmnff"
git_merge_only_fast_forward_alias="gmff"
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

@@ -104,6 +104,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'