1
0
Pārlūkot izejas kodu

Add 'git addnw' command

Taddeus Kroes 9 gadi atpakaļ
vecāks
revīzija
f013774de5
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      gitconfig

+ 1 - 0
gitconfig

@@ -12,6 +12,7 @@
     tree = log --graph --oneline --all --full-history --decorate
     lg = log --graph --decorate --all --full-history --date=relative \
         --format=format:'%C(bold blue)%h%Creset %C(dim bold green)%<(14)%ad%Creset %C(dim white)%an%Creset  %s%C(bold yellow)%d%Creset'
+    addnw = !sh -c 'git diff -U0 -w --no-color "$@" | git apply --cached --ignore-whitespace --unidiff-zero -'
 
 [log]
     abbrevCommit = true