Method: Spoom::Context::Git#git_commit!
- Defined in:
- lib/spoom/context/git.rb
#git_commit!(message: "message", time: Time.now.utc, allow_empty: false) ⇒ Object
68 69 70 71 72 73 74 75 |
# File 'lib/spoom/context/git.rb', line 68 def git_commit!(message: "message", time: Time.now.utc, allow_empty: false) git("add --all") args = ["-m '#{message}'", "--date '#{time}'"] args << "--allow-empty" if allow_empty exec("GIT_COMMITTER_DATE=\"#{time}\" git -c commit.gpgsign=false commit #{args.join(" ")}") end |