From 11b595516167927b70d182ab8d38257c9e86cfc3 Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Mon, 20 Jun 2011 16:13:34 -0400 Subject: [PATCH] Revert "move garb into git plugins; rename newpost as jknewpost" This reverts commit d22a4cfa7058b224e37dbf07aa7cd3c583fdd188. --- aliases/available/git.aliases.bash | 7 +++++++ plugins/available/git.plugins.bash | 8 +------- plugins/available/jekyll.plugins.bash | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/aliases/available/git.aliases.bash b/aliases/available/git.aliases.bash index 7cfc9d9..3a5d2a9 100644 --- a/aliases/available/git.aliases.bash +++ b/aliases/available/git.aliases.bash @@ -39,6 +39,13 @@ case $OSTYPE in ;; esac +# git add remote branch +function garb() { + echo "Adding remote branch '$1'"; + git config branch.$1.remote origin; + git config branch.$1.merge refs/heads/$1; +} + function git-help() { echo "Git Custom Aliases Usage" echo diff --git a/plugins/available/git.plugins.bash b/plugins/available/git.plugins.bash index 3fbdac6..b0b9ce8 100644 --- a/plugins/available/git.plugins.bash +++ b/plugins/available/git.plugins.bash @@ -5,13 +5,6 @@ function git_remote { git remote add origin $GIT_HOSTING:$1.git } -# git add remote branch -function garb() { - echo "Adding remote branch '$1'"; - git config branch.$1.remote origin; - git config branch.$1.merge refs/heads/$1; -} - function git_first_push { echo "Running: git push origin master:refs/heads/master" git push origin master:refs/heads/master @@ -99,3 +92,4 @@ else echo "you're currently not in a git repository" fi } + diff --git a/plugins/available/jekyll.plugins.bash b/plugins/available/jekyll.plugins.bash index 3b96f45..aebe69b 100644 --- a/plugins/available/jekyll.plugins.bash +++ b/plugins/available/jekyll.plugins.bash @@ -26,7 +26,7 @@ editpost() { fi } -jknewpost() { +newpost() { # 'builtin cd' into the local jekyll root -- 2.17.1