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.2.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.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: commit_generator-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d4ffd67e5422f8c43a27b375aed7b2b0ef76101e6feaefb322cfb55c2832e95a
MD5 1aa4b8cd99c95f8b5848297ae4cc3c30
BLAKE2b-256 bb333160837fe999a98b83acf1d19d016e716d618c2412d2066fb9340827f074

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for commit_generator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 678a295169adaeded3adbc317978b1b7c436ccf47ec1ad3c5792a9b2db8cfad6
MD5 c9c669435d9a273e1caf0aea98f87db0
BLAKE2b-256 aae77597fd32c85049b0890e455df7be2c8f9fd14ec05bd6215dce8de6a08cad

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