Method: Docman::GitUtil.commit
- Defined in:
- lib/docman/git_util.rb
.commit(root_path, path, message, tag = nil) ⇒ Object
73 74 75 76 77 78 79 80 81 |
# File 'lib/docman/git_util.rb', line 73 def self.commit(root_path, path, , tag = nil) if repo_changed? path # puts message pull root_path exec %Q(add --all #{path.slice "#{root_path}/"}) exec %Q(commit -m "#{}") if repo_changed? path self.tag(root_path, tag) if tag end end |