diff: changed the diff script to an alias

This commit is contained in:
rkiel
2015-06-06 18:35:48 -04:00
parent dddb6d130b
commit 27b521d609
3 changed files with 3 additions and 20 deletions

View File

@@ -3,7 +3,6 @@
This is a collection of simple scripts to make using `git` easier.
* commit - make using `git-commmit` easier
* diff - make using `git-diff` easier
* feature - make working with feature branches easier
* xgrep - make using `git-grep` easier
@@ -46,18 +45,6 @@ commit this is a sample commit message
generates the command `git commit -m "this is a sample commit message"`.
## Diff utility
This utility makes it easier to check differences ignoring white spaces.
No need to specify the `-w` parameter.
For example,
```
diff master
```
generates the command `git diff -w master`.
## Feature utility
### Usage

View File

@@ -1,7 +0,0 @@
#!/usr/bin/env ruby
args = ARGV.join(' ')
command = "git diff -w #{args}"
exec command

View File

@@ -6,6 +6,9 @@ alias pull="git pull"
alias push="git push"
alias master="git checkout master"
alias develop="git checkout develop"
alias diff="git diff -w"
alias linuxdiff="/usr/bin/diff"
alias sysdiff="/usr/bin/diff"
#alias log="git log --graph --decorate --abbrev-commit --pretty=oneline"
alias log="git log --graph --date=short --pretty=format:'%C(yellow)%h %C(white)%ad %C(black)[%C(green)%an%C(black)] %C(blue)%s%C(yellow)%d'"
alias stash="git stash save"