Browse Source

Added shell `clear` before `add --patch` and `diff --cached`

Thanks to [this question on SO][1].

  [1]: http://stackoverflow.com/questions/7534184/git-alias-multiple-commands-and-parameters
Alois Mahdal 12 years ago
parent
commit
0f5604d5f1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      dotfiles/git-universe/before.gitconfig

+ 2
- 2
dotfiles/git-universe/before.gitconfig View File

3
 [core]
3
 [core]
4
     editor = vim
4
     editor = vim
5
 [alias]
5
 [alias]
6
-  ap = add --patch
6
+  ap = !clear && git add --patch
7
   br = branch
7
   br = branch
8
   cm = commit
8
   cm = commit
9
   cma = commit --amend
9
   cma = commit --amend
10
   co = checkout
10
   co = checkout
11
   com = checkout master
11
   com = checkout master
12
-  dc = diff --cached
12
+  dc = !clear && git diff --cached
13
   gr = log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x1b[0m"
13
   gr = log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x1b[0m"
14
   rb = rebase
14
   rb = rebase
15
   rbi = rebase --interactive
15
   rbi = rebase --interactive