lib/vlad/git.rb
##
# Returns the command that will export +revision+ from the repository into
# the directory +destination+.
Returns the command that will export +revision+ from the repository into
the directory +destination+.
Returns the command that will export + revision + from the repository into the directory + destination + .
def export(revision, destination)
    revision = 'HEAD' if revision == "."
    [ "mkdir -p #{destination}",
      "#{git_cmd} archive #{revision} | (cd #{destination} && tar xf -)"
    ].join(" && ")
  end
def export ( revision , destination ) revision = 'HEAD' if revision == "." [ "mkdir -p #{destination}" , "#{git_cmd} archive #{revision} | (cd #{destination} && tar xf -)" ] . join ( " && " ) end
Returns the command that will export +revision+ from the repository into
the directory +destination+.
Returns the command that will export + revision + from the repository into the directory + destination + .
revision
<not_specific>
destination
<not_specific>