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

@@ -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'