Sha256: 546e86dff9706c3b0eb65be7751d2af1bca2cba5e0b5a1ea7ecd6b218ef31720
Contents?: true
Size: 387 Bytes
Versions: 13
Compression:
Stored size: 387 Bytes
Contents
#!/usr/bin/env ruby config = if (xdg = ENV['XDG_CONFIG_HOME'].to_s.strip).size == 0 File.join(ENV.fetch('HOME'), '.config', 'commit_message') else File.join(xdg, 'commit_message') end branch = `git rev-parse --abbrev-ref HEAD`.chomp exec 'ollama_cli', '-M', "#{config}/options.json", '-P', "branch=#{branch}", '-s', "#{config}/system.txt", '-p', "#{config}/prompt.txt"
Version data entries
13 entries across 13 versions & 1 rubygems