add git is-tracked function
authorpatrick nsukami <ndkpatt@gmail.com>
Thu, 4 Feb 2016 17:24:12 +0000 (17:24 +0000)
committerpatrick nsukami <ndkpatt@gmail.com>
Thu, 4 Feb 2016 17:24:12 +0000 (17:24 +0000)
.gitconfig

index c852640..1c42a0a 100644 (file)
@@ -87,6 +87,9 @@
         my-alias2 = "! date " # call the cmd directly
         log-remote = "!git log HEAD..origin"
 
+        # check if file is tracked
+        is-tracked = "!t(){ git ls-files $1 --error-unmatch; echo $?; }; t"
+
 [color]
         ui = always
         branch = auto
 
 [init]
     templatedir = ~/.git_template
+[merge]
+    tool = emerge