Skip to main content

CLI tool for generating commit messages using a commit-generation server

Project description

Commit-Gen CLI Tool

Commit-Gen is a powerful Python CLI tool designed to streamline your commit workflow. It automatically extracts the staged Git diff, sends it to a commit-generation server, and prints a clear, concise commit message based on the changes made. This process helps ensure that your commit history remains informative and consistent.

Features

  • Automated Commit Messages:
    Generates detailed commit messages based on staged code changes.
  • Easy Integration:
    Works directly with your Git workflow.

Installation

Install Commit-Gen directly from PyPI using pip:

pip install commit-generator

Usage

Basic Workflow

  • Stage Your Changes:

Begin by staging your changes in Git using:

git add .
  • Generate the Commit Message:

Execute the Commit-Gen tool to generate your commit message:

commit-gen

The CLI tool will:

  • Extract the staged Git diff.
  • Communicate with the commit-generation server.
  • Output a generated commit message that summarizes your changes.
  • Apply the Commit Message:

Use the generated message when committing your changes:

git commit -m "$(commit-gen)"

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

commit_generator-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

commit_generator-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file commit_generator-0.1.1.tar.gz.

File metadata

  • Download URL: commit_generator-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for commit_generator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ea283f344e726e0e50b74946a7b972525fa31a93e74d497a221ecb0b775cb1b6
MD5 647ce39cb38955d367c34df15ab4fea4
BLAKE2b-256 8f8b521494924bbd44f8c7bb7d29db1113527cb42629048b3b07a3bb8d48d92f

See more details on using hashes here.

File details

Details for the file commit_generator-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for commit_generator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bee5d94903f1341dc2430504c16705dc156503aec1700e57369d42de708e530f
MD5 ccc085c4aae2b8af7f980502962bdc6b
BLAKE2b-256 da9932aa8c9afaf0661cfc02e3fb4a7600886fd8474eabd97aa985f630f89e56

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