Add git difftool (default alias "gdt")
This commit is contained in:
@@ -49,6 +49,7 @@ git_blame_alias="gbl"
|
||||
git_diff_alias="gd"
|
||||
git_diff_word_alias="gdw"
|
||||
git_diff_cached_alias="gdc"
|
||||
git_difftool_alias="gdt"
|
||||
# 3. Standard commands
|
||||
git_clone_alias="gcl"
|
||||
git_fetch_alias="gf"
|
||||
|
||||
@@ -97,6 +97,7 @@ if [ "$git_setup_aliases" = "yes" ]; then
|
||||
__git_alias "$git_diff_word_alias" "git" "diff" "--word-diff"
|
||||
__git_alias "$git_diff_cached_alias" "git" "diff" "--cached"
|
||||
__git_alias "$git_add_patch_alias" "git" "add" "-p"
|
||||
__git_alias "$git_difftool_alias" "git" "difftool"
|
||||
# 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"
|
||||
|
||||
Reference in New Issue
Block a user