colordiffs-0.1.8
توضیحات
Syntax highlights for your git diffs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | colordiffs-0.1.8 |
| نام | colordiffs |
| نسخه کتابخانه | 0.1.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ng Zhi An |
| ایمیل نویسنده | ngzhian@gmail.com |
| آدرس صفحه اصلی | https://github.com/ngzhian/colordiffs |
| آدرس اینترنتی | https://pypi.org/project/colordiffs/ |
| مجوز | UNKNOWN |
==========
Colordiffs
==========
Colors for your git diffs
.. image:: colordiffs.png
Colordiffs is under development, things are bound to be broken.
If you would like to help out, start an issue or submit a pull request :)
Installation
============
::
pip install colordiffs
How to run
==========
::
git diff HEAD^ | colordiffs | less -r
explanation
1. ``git diff HEAD^`` gets a diff between the current and the previous commit
2. ``colordiffs`` reads a diff from stdin
3. ``less -r`` takes the output of colordiffs and uses ``less`` to page it, the ``-r`` is required to interpret the terminal escape codes
Requirements
============
::
Python 2.x, 3.x
Pygments
TODO
====
Support more kinds of `git diff` output. Right not it supports the most common `---` `+++` diffs, but if the diff is for a new file or deletion of file it breaks.
نحوه نصب
نصب پکیج whl colordiffs-0.1.8:
pip install colordiffs-0.1.8.whl
نصب پکیج tar.gz colordiffs-0.1.8:
pip install colordiffs-0.1.8.tar.gz