aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-07-22 11:50:08 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-07-22 11:50:08 +0200
commit8152f611a91d8918568c8d90e2478a7611e1a33b (patch)
treec3adafe5d088c94e6ee1240f2591add4956f43f3
parentf93f4abf2da5b5d60b217da82e26d42456f894cb (diff)
provide remove command
-rw-r--r--bzr.rb4
-rw-r--r--git.rb4
2 files changed, 8 insertions, 0 deletions
diff --git a/bzr.rb b/bzr.rb
index 618ca44..83a4e4b 100644
--- a/bzr.rb
+++ b/bzr.rb
@@ -26,6 +26,10 @@ class VCS
`#{BZRCMD} init`
end
+ def VCS.rm file
+ `#{BZRCMD} rm #{file}`
+ end
+
def VCS.add file
`#{BZRCMD} add #{file}`
end
diff --git a/git.rb b/git.rb
index 4d6f011..8777eae 100644
--- a/git.rb
+++ b/git.rb
@@ -26,6 +26,10 @@ class VCS
`#{GITCMD} init`
end
+ def VCS.rm file
+ `#{GITCMD} rm #{file}`
+ end
+
def VCS.add file
`#{GITCMD} add #{file}`
end