Merge pull request #273 from jeffbyrnes/add-gmt-alias

Add alias & default shortcut for `git mergetool`
This commit is contained in:
Wilhelmina Drengwitz
2018-09-17 11:25:31 -04:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ git_diff_file_alias="gdf"
git_diff_word_alias="gdw" git_diff_word_alias="gdw"
git_diff_cached_alias="gdc" git_diff_cached_alias="gdc"
git_difftool_alias="gdt" git_difftool_alias="gdt"
git_mergetool_alias="gmt"
# 3. Standard commands # 3. Standard commands
git_clone_alias="gcl" git_clone_alias="gcl"
git_fetch_alias="gf" git_fetch_alias="gf"

View File

@@ -113,6 +113,7 @@ if [ "$git_setup_aliases" = "yes" ]; then
__git_alias "$git_add_patch_alias" 'git' 'add' '-p' __git_alias "$git_add_patch_alias" 'git' 'add' '-p'
__git_alias "$git_add_updated_alias" 'git' 'add' '-u' __git_alias "$git_add_updated_alias" 'git' 'add' '-u'
__git_alias "$git_difftool_alias" 'git' 'difftool' __git_alias "$git_difftool_alias" 'git' 'difftool'
__git_alias "$git_mergetool_alias" 'git' 'mergetool'
# Custom default format for git log # 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_log_command="log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"