File tree 1 file changed +5
-8
lines changed 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ class Vlad::Git
6
6
set :source , Vlad ::Git . new
7
7
set :git_cmd , "git"
8
8
9
- ##
10
9
# Returns the command that will check out +revision+ from the
11
10
# repository into directory +destination+. +revision+ can be any
12
11
# SHA1 or equivalent (e.g. branch, tag, etc...)
@@ -39,10 +38,9 @@ def checkout(revision, destination)
39
38
end
40
39
end
41
40
42
- ##
43
- # Returns the command that will export +revision+ from the current directory
44
- # into the directory +destination+.
45
- # Expects to be run from +scm_path+ after Vlad::Git#checkout
41
+ # Returns the command that will export +revision+ from the current
42
+ # directory into the directory +destination+. Expects to be run
43
+ # from +scm_path+ after Vlad::Git#checkout.
46
44
47
45
def export ( revision , destination )
48
46
revision = 'HEAD' if revision =~ /head/i
@@ -57,9 +55,8 @@ def export(revision, destination)
57
55
] . join ( " && " )
58
56
end
59
57
60
- ##
61
- # Returns a command that maps human-friendly revision identifier +revision+
62
- # into a git SHA1.
58
+ # Returns a command that maps human-friendly revision identifier
59
+ # +revision+ into a git SHA1.
63
60
64
61
def revision ( revision )
65
62
revision = 'HEAD' if revision =~ /head/i
You can’t perform that action at this time.
0 commit comments