From 4e3e1b216b96af7d38a2894d93187e6d5a29349b Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Thu, 11 Jun 2009 10:05:32 +1000 Subject: [PATCH] Renamed a lot of @ben_h's git aliases to the ones used at the office --- fish/functions/{gita.fish => ga.fish} | 2 +- fish/functions/{gitau.fish => gau} | 2 +- fish/functions/{gitc.fish => gc.fish} | 2 +- fish/functions/{gitco.fish => gco.fish} | 2 +- fish/functions/gd.fish | 3 +++ fish/functions/gdc..fish | 3 +++ fish/functions/gdc.fish | 3 +++ fish/functions/gitd..fish | 3 --- fish/functions/gitd.fish | 3 --- fish/functions/gitdc..fish | 3 --- fish/functions/gitdc.fish | 3 --- fish/functions/gitdcw.fish | 4 ---- fish/functions/gitdw.fish | 5 ----- fish/functions/gitl.fish | 3 --- fish/functions/gitlcg.fish | 3 --- fish/functions/gitrb.fish | 3 --- fish/functions/gitrbc.fish | 3 --- fish/functions/gitst.fish | 3 --- fish/functions/gitstp.fish | 3 --- fish/functions/gl.fish | 5 ----- fish/functions/{gitlc.fish => glc.fish} | 2 +- fish/functions/glcg.fish | 3 +++ fish/functions/{gitlpend.fish => glp.fish} | 2 +- fish/functions/{gits.fish => gst.fish} | 2 +- 24 files changed, 19 insertions(+), 51 deletions(-) rename fish/functions/{gita.fish => ga.fish} (60%) rename fish/functions/{gitau.fish => gau} (61%) rename fish/functions/{gitc.fish => gc.fish} (65%) rename fish/functions/{gitco.fish => gco.fish} (63%) create mode 100755 fish/functions/gd.fish create mode 100755 fish/functions/gdc..fish create mode 100755 fish/functions/gdc.fish delete mode 100755 fish/functions/gitd..fish delete mode 100755 fish/functions/gitd.fish delete mode 100755 fish/functions/gitdc..fish delete mode 100755 fish/functions/gitdc.fish delete mode 100755 fish/functions/gitdcw.fish delete mode 100755 fish/functions/gitdw.fish delete mode 100755 fish/functions/gitl.fish delete mode 100755 fish/functions/gitlcg.fish delete mode 100755 fish/functions/gitrb.fish delete mode 100755 fish/functions/gitrbc.fish delete mode 100755 fish/functions/gitst.fish delete mode 100755 fish/functions/gitstp.fish delete mode 100755 fish/functions/gl.fish rename fish/functions/{gitlc.fish => glc.fish} (75%) create mode 100755 fish/functions/glcg.fish rename fish/functions/{gitlpend.fish => glp.fish} (94%) rename fish/functions/{gits.fish => gst.fish} (63%) diff --git a/fish/functions/gita.fish b/fish/functions/ga.fish similarity index 60% rename from fish/functions/gita.fish rename to fish/functions/ga.fish index df0ad9e..c42db5c 100755 --- a/fish/functions/gita.fish +++ b/fish/functions/ga.fish @@ -1,3 +1,3 @@ -function gita +function ga git add $argv; end diff --git a/fish/functions/gitau.fish b/fish/functions/gau similarity index 61% rename from fish/functions/gitau.fish rename to fish/functions/gau index 7ad0132..5b9f8ba 100755 --- a/fish/functions/gitau.fish +++ b/fish/functions/gau @@ -1,3 +1,3 @@ -function gitau +function gau git add -u $argv; end diff --git a/fish/functions/gitc.fish b/fish/functions/gc.fish similarity index 65% rename from fish/functions/gitc.fish rename to fish/functions/gc.fish index 74d33a8..44104d3 100755 --- a/fish/functions/gitc.fish +++ b/fish/functions/gc.fish @@ -1,3 +1,3 @@ -function gitc +function gc git commit -v $argv; end diff --git a/fish/functions/gitco.fish b/fish/functions/gco.fish similarity index 63% rename from fish/functions/gitco.fish rename to fish/functions/gco.fish index 6dbccd6..033edf7 100755 --- a/fish/functions/gitco.fish +++ b/fish/functions/gco.fish @@ -1,3 +1,3 @@ -function gitco +function gco git checkout $argv; end diff --git a/fish/functions/gd.fish b/fish/functions/gd.fish new file mode 100755 index 0000000..4fe2866 --- /dev/null +++ b/fish/functions/gd.fish @@ -0,0 +1,3 @@ +function gd + git diff $argv | mate; +end diff --git a/fish/functions/gdc..fish b/fish/functions/gdc..fish new file mode 100755 index 0000000..c38d8a0 --- /dev/null +++ b/fish/functions/gdc..fish @@ -0,0 +1,3 @@ +function gdc. + git diff --cached --color-words='.' $argv | mate; +end diff --git a/fish/functions/gdc.fish b/fish/functions/gdc.fish new file mode 100755 index 0000000..3ad0872 --- /dev/null +++ b/fish/functions/gdc.fish @@ -0,0 +1,3 @@ +function gdc + git diff --cached $argv | mate; +end diff --git a/fish/functions/gitd..fish b/fish/functions/gitd..fish deleted file mode 100755 index 96a114f..0000000 --- a/fish/functions/gitd..fish +++ /dev/null @@ -1,3 +0,0 @@ -function gitd. - git diff --color-words='.' $argv; -end diff --git a/fish/functions/gitd.fish b/fish/functions/gitd.fish deleted file mode 100755 index e0fc015..0000000 --- a/fish/functions/gitd.fish +++ /dev/null @@ -1,3 +0,0 @@ -function gitd - git diff $argv; -end diff --git a/fish/functions/gitdc..fish b/fish/functions/gitdc..fish deleted file mode 100755 index f05d63c..0000000 --- a/fish/functions/gitdc..fish +++ /dev/null @@ -1,3 +0,0 @@ -function gitdc. - git diff --cached --color-words='.' $argv; -end diff --git a/fish/functions/gitdc.fish b/fish/functions/gitdc.fish deleted file mode 100755 index 996edf8..0000000 --- a/fish/functions/gitdc.fish +++ /dev/null @@ -1,3 +0,0 @@ -function gitdc - git diff --cached $argv; -end diff --git a/fish/functions/gitdcw.fish b/fish/functions/gitdcw.fish deleted file mode 100755 index b8af808..0000000 --- a/fish/functions/gitdcw.fish +++ /dev/null @@ -1,4 +0,0 @@ -function gitdcw - git diff --cached $color_ruby_words $argv - -end diff --git a/fish/functions/gitdw.fish b/fish/functions/gitdw.fish deleted file mode 100755 index 3c2c86a..0000000 --- a/fish/functions/gitdw.fish +++ /dev/null @@ -1,5 +0,0 @@ -function gitdw - git diff $color_ruby_words $argv - - -end diff --git a/fish/functions/gitl.fish b/fish/functions/gitl.fish deleted file mode 100755 index 584b458..0000000 --- a/fish/functions/gitl.fish +++ /dev/null @@ -1,3 +0,0 @@ -function gitl - git log -p $argv; -end diff --git a/fish/functions/gitlcg.fish b/fish/functions/gitlcg.fish deleted file mode 100755 index 11d308c..0000000 --- a/fish/functions/gitlcg.fish +++ /dev/null @@ -1,3 +0,0 @@ -function gitlcg - gitlc --graph $argv; -end diff --git a/fish/functions/gitrb.fish b/fish/functions/gitrb.fish deleted file mode 100755 index fd635b3..0000000 --- a/fish/functions/gitrb.fish +++ /dev/null @@ -1,3 +0,0 @@ -function gitrb - git rebase $argv; -end diff --git a/fish/functions/gitrbc.fish b/fish/functions/gitrbc.fish deleted file mode 100755 index a43f6e6..0000000 --- a/fish/functions/gitrbc.fish +++ /dev/null @@ -1,3 +0,0 @@ -function gitrbc - git rebase --continue $argv; -end diff --git a/fish/functions/gitst.fish b/fish/functions/gitst.fish deleted file mode 100755 index bc74751..0000000 --- a/fish/functions/gitst.fish +++ /dev/null @@ -1,3 +0,0 @@ -function gitst - git stash $argv; -end diff --git a/fish/functions/gitstp.fish b/fish/functions/gitstp.fish deleted file mode 100755 index 7f56fd5..0000000 --- a/fish/functions/gitstp.fish +++ /dev/null @@ -1,3 +0,0 @@ -function gitstp - git stash pop $argv; -end diff --git a/fish/functions/gl.fish b/fish/functions/gl.fish deleted file mode 100755 index 135f3bc..0000000 --- a/fish/functions/gl.fish +++ /dev/null @@ -1,5 +0,0 @@ -function gl - git log $argv - - -end diff --git a/fish/functions/gitlc.fish b/fish/functions/glc.fish similarity index 75% rename from fish/functions/gitlc.fish rename to fish/functions/glc.fish index 32ee275..2baa73e 100755 --- a/fish/functions/gitlc.fish +++ b/fish/functions/glc.fish @@ -1,3 +1,3 @@ -function gitlc +function glc git log $git_concise_log_format $argv; end diff --git a/fish/functions/glcg.fish b/fish/functions/glcg.fish new file mode 100755 index 0000000..f0b05a7 --- /dev/null +++ b/fish/functions/glcg.fish @@ -0,0 +1,3 @@ +function glcg + gslc --graph $argv; +end diff --git a/fish/functions/gitlpend.fish b/fish/functions/glp.fish similarity index 94% rename from fish/functions/gitlpend.fish rename to fish/functions/glp.fish index c6e362e..27482a8 100755 --- a/fish/functions/gitlpend.fish +++ b/fish/functions/glp.fish @@ -1,4 +1,4 @@ -function gitlpend +function glp printf "commits from %s%s/%s%s to %sHEAD%s" (set_color red) (git config branch.(git_parse_branch).remote) (git_parse_branch) (set_color normal) (set_color red) (set_color normal) echo git --no-pager log --graph (git config branch.(git_parse_branch).remote)/(git_parse_branch)..HEAD $git_concise_log_format diff --git a/fish/functions/gits.fish b/fish/functions/gst.fish similarity index 63% rename from fish/functions/gits.fish rename to fish/functions/gst.fish index 5766b8b..8cf1017 100755 --- a/fish/functions/gits.fish +++ b/fish/functions/gst.fish @@ -1,3 +1,3 @@ -function gits +function gst git status $argv; end