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

Version Path
utils-0.62.0 bin/commit_message
utils-0.61.0 bin/commit_message
utils-0.60.2 bin/commit_message
utils-0.60.1 bin/commit_message
utils-0.60.0 bin/commit_message
utils-0.59.2 bin/commit_message
utils-0.59.1 bin/commit_message
utils-0.59.0 bin/commit_message
utils-0.58.0 bin/commit_message
utils-0.57.1 bin/commit_message
utils-0.57.0 bin/commit_message
utils-0.56.1 bin/commit_message
utils-0.56.0 bin/commit_message