move garb into git plugins; rename newpost as jknewpost
authorDavid DeSandro <david@desandro.com>
Fri, 17 Jun 2011 15:01:18 +0000 (11:01 -0400)
committerDavid DeSandro <david@desandro.com>
Fri, 17 Jun 2011 15:01:18 +0000 (11:01 -0400)
aliases/available/git.aliases.bash
plugins/available/git.plugins.bash
plugins/available/jekyll.plugins.bash

index 3a5d2a9..7cfc9d9 100644 (file)
@@ -39,13 +39,6 @@ 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
index b0b9ce8..3fbdac6 100644 (file)
@@ -5,6 +5,13 @@ 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
@@ -92,4 +99,3 @@ else
     echo "you're currently not in a git repository"
 fi
 }
-
index aebe69b..3b96f45 100644 (file)
@@ -26,7 +26,7 @@ editpost() {
        fi
 }
 
-newpost() {
+jknewpost() {
 
        # 'builtin cd' into the local jekyll root