ariG23498 / smart-commit

Smart commit messages
11 stars 2 forks source link

Smart Commit

A tool that creates smart commit messages using the git diff.

Usage

Install the CLI

$ pip install git+https://github.com/ariG23498/smart-commit

Go to a git repository

$ git add .
$ smart-commit

Smart commit gives you a commit message based on the staged changes.

Tool Help

NAME
    smart-commit - Main function that orchestrates the commit message generation and user interaction.

SYNOPSIS
    smart-commit <flags>

DESCRIPTION
    Main function that orchestrates the commit message generation and user interaction.

FLAGS
    --model=MODEL
        Default: 'meta-llama/Llama...
    --max_tokens=MAX_TOKENS
        Default: 100

Models

This tool uses the huggingface_hub.InferenceClient API. So you can use all the models that support the inference endpoints!

To know more about inference endpoints please read the official documentation.

References