bashrc: change git diff
This commit is contained in:
@@ -97,10 +97,7 @@ commit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
git() {
|
git() {
|
||||||
if [[ "$1" == "diff" ]]; then
|
if [[ "$1" == "remote" ]]; then
|
||||||
shift
|
|
||||||
command git diff --staged "$@"
|
|
||||||
elif [[ "$1" == "remote" ]]; then
|
|
||||||
shift
|
shift
|
||||||
command git remote -v "$@"
|
command git remote -v "$@"
|
||||||
elif [[ "$1" == "status" ]]; then
|
elif [[ "$1" == "status" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user