Skip to main content

A way to manage commit messages

Project description

git-changes

I just want to manage my commit messages.


Why?

i just want to keep track of the changes that I make. Instead of adding many changes at once and then writing a long commit message, I just want to add the each change with a message and then commit them.


Installation

pip3 install git-changes

Usage

Initializing

After installing run the below command in a git repo

gitc --init

Adding changes with messages

$ git addm file -m 'adding a new file' --type=fix
[fix] adding a new file

The --type is optional. The currently supported choices for --type are

$ git addm -help
usage: gitc-add [-h] -m MESSAGE [--type {feat,fix,docs,style,refactor,perf,test,build,ci,chore,revert}]

options:
  -h, --help            show this help message and exit
  -m MESSAGE, --message MESSAGE
                        Message to add
  --type {feat,fix,docs,style,refactor,perf,test,build,ci,chore,revert}
                        The type of the change

Show Message

To list all the messages that will added to the next commit, run

$ git show-messages
[fix] new hello file
[fix] adding a new file
[perf] fix some_function
[refactor] change var name

Commit

In order to commit with all these message all you have to do is run.

$ git commit

This will open up commit message editor with all the set message for the current commit.

Terminal image

NOTE: you cannot simply save and exit this file; since this is a template you have to make some changes to it. I suggest adding a title that summarizes all these changes.

After a successful commit all the messages will be automatically removed.

$ git show-messages
No commit messages yet!.. To add new message run
git addm -m <message> [--type]

Bye...

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

git_changes-0.0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

git_changes-0.0.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file git_changes-0.0.3.tar.gz.

File metadata

  • Download URL: git_changes-0.0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for git_changes-0.0.3.tar.gz
Algorithm Hash digest
SHA256 dd32599e1dcc98d67fe62fddd45b8bc6ec536758018045ac286269688ae1a797
MD5 8440554bda49374e27c559f2561fb45c
BLAKE2b-256 580dd82cfa59852e0dd8f3127f830b4d23cabd6195c6b5f3e4e5547ec143ad75

See more details on using hashes here.

File details

Details for the file git_changes-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: git_changes-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for git_changes-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4a27ce10afc876193e199030da9cc823c07dd149c8dd7e39968f94c520a60a3a
MD5 bb10d7c793d924f6fa54f3a9b7417365
BLAKE2b-256 3118fa0ef16c8d7160fb331e86315ee4593af1a99dedd82bb64707bb60875dba

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