Class: LegitGit::Accurev

Inherits:
Object
  • Object
show all
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, message)
  execute("defunct -c \"#{message}\" \"#{file_path}\"")
end

#keep(file_path, message) ⇒ Object



14
15
16
# File 'lib/legit-the-git/accurev.rb', line 14

def keep(file_path, message)
  execute("keep -c \"#{message}\" \"#{file_path}\"")
end