Skip to main content

A custom LLM-based git merge driver.

Project description

llmmerge

A custom LLM-based Git merge driver.

Usage as a Git Merge Driver

After installing the package, run the script: tools/add_git_global_options.sh to add the custom git merge driver as the secondary option for unresolved conflicts to the current installation of git.

You will also need to acquire a chatGPT API-key, and create the following environment variable in the shell running the git-merge command:

export OPENAI_API_KEY="ChatGPT-API-KEY"

ToDo Features

  1. For large input files, you can pre-process the input prompt so that the size of the prompt is lesser by using a language parser and sending only the required context -- using git diff line numbers to identify the context. You can then stitch together the merged function and the rest of the common file to get the merged file.

  2. Make a series of merge drivers with a series of increasingly complex/resource-intensive LLMs. To be used when the previous LLM fails to resolve conflict, satisfactorily.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llmmerge-0.2.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llmmerge-0.2.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file llmmerge-0.2.2.tar.gz.

File metadata

  • Download URL: llmmerge-0.2.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.8

File hashes

Hashes for llmmerge-0.2.2.tar.gz
Algorithm Hash digest
SHA256 15db1d6ddf736fca79b287abec23fe772786996ab36369b707cb91120acf4f5d
MD5 88ddab61cb1306c9bca47087acd735e6
BLAKE2b-256 cd7289657384c90d061d79a6ddd2f8f1d1f1e580425a55fde594731b70e791a6

See more details on using hashes here.

File details

Details for the file llmmerge-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: llmmerge-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.8

File hashes

Hashes for llmmerge-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3cfd1f64f377a7ed4e851f9db6b322aa678cfcbfee578eeed01df1c42ec23380
MD5 07184572f47797ba9bbd7a2e1540b534
BLAKE2b-256 19c45cf692d0e33664ffd0cf1fe83d79fb328fc0ad64af132b0e08a566909edf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page