We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 953b8b5 commit 8f70cc4Copy full SHA for 8f70cc4
lib/git/base.rb
@@ -477,7 +477,10 @@ def current_branch
477
self.lib.branch_current
478
end
479
480
-
+ def clean
481
+ puts "cleaning"
482
+ self.lib.clean
483
+ end
484
485
486
lib/git/lib.rb
@@ -28,6 +28,10 @@ def initialize(base = nil, logger = nil)
28
def init
29
command('init')
30
31
+
32
33
+ command('clean -f')
34
35
36
# tries to clone the given repo
37
#
@@ -103,7 +107,7 @@ def revparse(string)
103
107
return File.read(rev).chomp if rev
104
108
command('rev-parse', string)
105
109
106
110
111
def namerev(string)
112
command('name-rev', string).split[1]
113
0 commit comments