You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by vb...@apache.org on 2009/03/04 15:34:43 UTC

svn commit: r750024 - in /buildr/trunk/doc/scripts: buildr-git.rb gitflow.rb

Author: vborja
Date: Wed Mar  4 14:34:43 2009
New Revision: 750024

URL: http://svn.apache.org/viewvc?rev=750024&view=rev
Log:
Modified git alias examples not to allow the shell to expand "!"

Modified:
    buildr/trunk/doc/scripts/buildr-git.rb
    buildr/trunk/doc/scripts/gitflow.rb

Modified: buildr/trunk/doc/scripts/buildr-git.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/doc/scripts/buildr-git.rb?rev=750024&r1=750023&r2=750024&view=diff
==============================================================================
--- buildr/trunk/doc/scripts/buildr-git.rb (original)
+++ buildr/trunk/doc/scripts/buildr-git.rb Wed Mar  4 14:34:43 2009
@@ -21,7 +21,7 @@
 #
 # If you already have a buildr clone, just do the following:
 #
-#    git config alias.apache '!ruby '"$PWD/doc/scripts/buildr-git.rb"
+#    git config alias.apache '!'"ruby $PWD/doc/scripts/buildr-git.rb"
 #
 # After this, you have a 'git apache' command and you can try (be sure to read the help)
 #

Modified: buildr/trunk/doc/scripts/gitflow.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/doc/scripts/gitflow.rb?rev=750024&r1=750023&r2=750024&view=diff
==============================================================================
--- buildr/trunk/doc/scripts/gitflow.rb (original)
+++ buildr/trunk/doc/scripts/gitflow.rb Wed Mar  4 14:34:43 2009
@@ -46,7 +46,7 @@
 The following example registers buildr-git.rb, which provides apache
 svn and git synchronization commands:
 
-    git config alias.apache "!ruby $PWD/doc/scripts/buildr-git.rb"
+    git config alias.apache '!'"ruby $PWD/doc/scripts/buildr-git.rb"
 
 After that you can use
     git apache command --help
@@ -59,8 +59,8 @@
 Simply create a ruby script somewhere say ~/.buildr/gitflow.rb
 And alias it in your local repo:
 
-    git config alias.flow "!ruby ~/.buildr/gitflow.rb"
-    git config alias.work "!ruby ~/.buildr/gitflow.rb my-flow sub-work"
+    git config alias.flow '!'"ruby ~/.buildr/gitflow.rb"
+    git config alias.work '!'"ruby ~/.buildr/gitflow.rb my-flow sub-work"
 
 A sample command would look like this.. (you may want to look at buildr-git.rb)