Tom McKenzie пре 1 година
родитељ
комит
6faa2371fe
4 измењених фајлова са 11 додато и 18 уклоњено
  1. 8 17
      .gitconfig
  2. 1 0
      .gitignore_global
  3. 1 0
      .rc.d/git.sh
  4. 1 1
      .zshrc

+ 8 - 17
.gitconfig

@@ -27,25 +27,16 @@
 [help]
     autocorrect = 10
 
-
-[merge]
-    tool = vscode
-[mergetool "vscode"]
-    cmd = code --wait --diff $LOCAL $REMOTE
-
-[diff]
-    tool = vscode
-[difftool "vscode"]
-    cmd = code --wait --diff $LOCAL $REMOTE
-
 [alias]
     p = push
     pp = publish
+    s = switch
+    sc = switch create
     rb = pull --rebase
     rbc = rebase --continue
     rba = rebase --abort
-    fancy-log = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative
-    branches = for-each-ref --count=10 --sort='-authordate:iso8601' --format=' %(color:green)%(authordate:relative) %09%(color:white)%(objectname:short) %(color:yellow)%(refname:short) %09%(color:white)%(upstream:track) %(contents:subject)' refs/heads --no-merged
+    l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative
+    b = for-each-ref --count=10 --sort='-authordate:iso8601' --format=' %(color:green)%(authordate:relative) %09%(color:white)%(objectname:short) %(color:yellow)%(refname:short) %09%(color:white)%(upstream:track) %(contents:subject)' refs/heads --no-merged
     edit-conflicted = ! git diff --name-only | uniq | xargs $(echo $EDITOR)
     history = log -p --
 	pushf = push --force-with-lease
@@ -60,10 +51,6 @@
 	ignorecase = false
 	editor = vim -c 'startinsert'
 
-[merge]
-	tool = code
-#       conflictstyle = diff3
-
 [push]
 	default = upstream
 [status]
@@ -82,3 +69,7 @@
 	smudge = git-lfs smudge -- %f
 	process = git-lfs filter-process
 	required = true
+
+[include]
+    path = ~/dotfiles/.gitconfig_difftastic
+    condition = command -v difft >/dev/null 2>&1

+ 1 - 0
.gitignore_global

@@ -9,3 +9,4 @@ Icon
 
 .todo
 bak
+_docs

+ 1 - 0
.rc.d/git.sh

@@ -75,4 +75,5 @@ alias gsts='git stash show --text'
 alias gsu='git submodule update'
 
 alias gp='git push'
+alias gpf='git push --force-with-lease'
 alias gpl='git pull'

+ 1 - 1
.zshrc

@@ -21,7 +21,7 @@ fi
 if [[ -n $SSH_CONNECTION ]]; then
   export EDITOR='vim'
 else
-  export EDITOR='code --wait'
+  export EDITOR='zed'
 fi
 
 # The next line updates PATH for the Google Cloud SDK.