bin/commit_message in utils-0.53.1 vs bin/commit_message in utils-0.54.0
- old
+ new
@@ -5,7 +5,8 @@
File.join(ENV.fetch('HOME'), '.config', 'commit_message')
else
File.join(xdg, 'commit_message')
end
-exec 'ollama_cli', '-M', "#{config}/options.json",
+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"