Skip to main content

Package to email color git diff

Project description

git maildiff

Python Version PyPI - License Issues - Open

maildiff is a simple git command to send diff in color to reviewer/ co-worker through email.

Install

Navigate to git-maildiff directory you cloned or downloaded from terminal

pip install .

Uninstall

pip uninstall maildiff

Setup Config

git config --global maildiff.mailto recipient@email.com	

git config --global maildiff.smtpserver smtp.gmail.com	

git config --global maildiff.smtpserverport 587	

git config --global maildiff.mailFrom sender@email.com	

git config --global maildiff.smtpencryption tls

e.g. Gmail uses tls encryption

if you forget to run the above setup the git maildiff command will prompts each one by one and update in .gitconfig the email password is stored in OS keychain.

Usage

git maildiff - Email the diff of commited or uncommited changes in colored to multiple recipients and allows attaching patches.

git maildiff -d 'HEAD^1' - will email the diff.

when no -diff or -d flag is passed with value the default value is git diff HEAD^ HEAD

git maildiff -to email@domain.com - will email diff to this email address.

git maildiff -v - use the -v flag to enable verbosity and display what command is run and what is the result of executed command.

type git maildiff -h in shell for more help.

Note

If you are behind a proxy server, and you are having issues accessing git repository you can update gitconfig to add proxy settings like

git config --global http.proxy http://mydomain\\myusername:mypassword@myproxyserver:8080

Dependencies

Type git maildiff -h for help in command line/ terminal

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact

For any questions or issues, please open an issue on this GitHub repository or contact Sanjeev Kumar


⭐️ Don't forget to star the repository if you find it useful!

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

maildiff-3.0.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

maildiff-3.0.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file maildiff-3.0.1.tar.gz.

File metadata

  • Download URL: maildiff-3.0.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for maildiff-3.0.1.tar.gz
Algorithm Hash digest
SHA256 102333b49c22b05a2d9d47063e20c24b5bdfac5d7d523d9234b713949a4aab6e
MD5 58ddfa0eeae735fdb607de8a14ecfcce
BLAKE2b-256 fb2574638f759eb3334ab25d7c5612b45a402567f5c8a85abeb8b8540b905a35

See more details on using hashes here.

File details

Details for the file maildiff-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: maildiff-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for maildiff-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e3645c35a9e9a3283f153ca1a1a7add28ea0be56b408ac2e11ebef29393b40a
MD5 f12efd17a06c82be012ea5240def64a9
BLAKE2b-256 31e3b785dd5a010feb9866cd8dcc255c344a7f14bb5fa8f44cae08c23d3a3a90

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