Class: LegitGit::Accurev
- Inherits:
-
Object
- Object
- LegitGit::Accurev
- Defined in:
- lib/legit-the-git/accurev.rb
Instance Method Summary collapse
Instance Method Details
#add(file_path) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/legit-the-git/accurev.rb', line 6 def add(file_path) if File.directory?(file_path) # Recursively add directory (`accurev add -x -R {Dir}`) execute("add -x -R \"#{file_path}\"") else # Add single file (`accurev add {File}`) execute("add \"#{file_path}\"") end end |
#defunct(file_path, message) ⇒ Object
18 19 20 |
# File 'lib/legit-the-git/accurev.rb', line 18 def defunct(file_path, ) execute("defunct -c \"#{}\" \"#{file_path}\"") end |
#keep(file_path, message) ⇒ Object
14 15 16 |
# File 'lib/legit-the-git/accurev.rb', line 14 def keep(file_path, ) execute("keep -c \"#{}\" \"#{file_path}\"") end |