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 08:23:01 UTC
svn commit: r749932 - /buildr/trunk/doc/scripts/buildr-git.rb
Author: vborja
Date: Wed Mar 4 07:23:00 2009
New Revision: 749932
URL: http://svn.apache.org/viewvc?rev=749932&view=rev
Log:
Added more docs to buildr-git
Modified:
buildr/trunk/doc/scripts/buildr-git.rb
Modified: buildr/trunk/doc/scripts/buildr-git.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/doc/scripts/buildr-git.rb?rev=749932&r1=749931&r2=749932&view=diff
==============================================================================
--- buildr/trunk/doc/scripts/buildr-git.rb (original)
+++ buildr/trunk/doc/scripts/buildr-git.rb Wed Mar 4 07:23:00 2009
@@ -16,14 +16,28 @@
# This script helps buildr developers to obtain their own git clone from
-# github, having a set of pre-defined aliases to work with Apache's SVN.
+# github, and also provides GitFlow commands to keep the git mirror in sync
+# with Apache SVN.
#
-# You dont need to have a buildr copy to use it, just execute:
+# If you already have a buildr clone, just do the following:
+#
+# 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)
+#
+# git apache help
+# git apache setup svn --help
+# git apache sync --help
+#
+# This script can also be run without having a local buildr clone:
#
# ruby -ropen-uri -e 'eval(open("http://svn.apache.org/viewvc/buildr/trunk/doc/scripts/buildr-git.rb?view=co").read)' help
+
+
require 'yaml'
require 'open-uri'
+
if $0 == '-e' # invoked from open-uri
gitflow = "http://svn.apache.org/viewvc/buildr/trunk/doc/scripts/gitflow.rb?view=co"
eval(open(gitflow).read)