Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add git difftool (default alias "gdt") #95

Merged
merged 1 commit into from

2 participants

@cliffrowley

No description provided.

@cliffrowley

Hello, any chance of getting this added? Cheers!

@ndbroadbent
Owner

Hey, sorry, merged! Thanks

@ndbroadbent ndbroadbent merged commit 2541ef9 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 2, 2013
  1. @cliffrowley
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +1 −0  git.scmbrc.example
  2. +1 −0  lib/git/aliases.sh
View
1  git.scmbrc.example
@@ -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"
View
1  lib/git/aliases.sh
@@ -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"
Something went wrong with that request. Please try again.