3 Star 0 Fork 0

Gitee 极速下载 / yolog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/karandesai-96/yolog
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

YoLog !

Latest Version Downloads License

Beautify your git logs !

Git logs look like this by default:

https://raw.githubusercontent.com/karandesai-96/yolog/master/docs/ordinary.png

Yolog wraps over standard git log and represents commit message history in a compact manner. It provides a visualization of commit graph, and shows refs, tags and unmerged branches altogether. A yolog powered git log looks like this:

https://raw.githubusercontent.com/karandesai-96/yolog/master/docs/yolog-powered.png

Installation

Obtain stable release from PyPI

pip install yolog

Alternatively, to obtain the bleeding edge version, clone the repo and build it from source:

git clone https://www.github.com/karandesai-96/yolog
cd yolog && python setup.py install

Usage

  • To view yolog powered git log, simply execute yolog in terminal.
  • For brief instructions, execute yolog -h or yolog --help in terminal.
  • For changing color of any attribute, execute command of format yolog config attribute COLOR.
    • Alternatively, -c or --config work as well.
    • attribute can be one of: author, date, description, hash, refs
    • COLOR can be one of: RED, GREEN, YELLOW, BLUE, CYAN, PURPLE, BLACK, WHITE
    • Arguments attribute and COLOR are case insensitive.
https://raw.githubusercontent.com/karandesai-96/yolog/master/docs/color-changing.png
  • It also accepts arguments which are used to filter output. These arguments are same as those accepted by standard

git log.

Here are the most common used ones:

Command Example Description
yolog -n N Display recent N commits.
yolog --skip N Skip recent N commits and display further.
yolog --author "john\ doe" Filter commits according to author. Part of name / whole will be accepted.

yolog --before dd-mmm-yyyy

yolog --until dd/mmm/yyyy

Display commits before this date.

Hyphen (-) or slash (/) can be used interchangeably.

yolog --after dd/mmm/yyyy

yolog --since dd-mmm-yyyy

Display commits after this date.

Hyphen (-) or slash (/) can be used interchangeably.

yolog --grep "foo\ bar" Display commits with "foo bar" in their description.
  • Any of these can be combined together and used.
  • = can be optionally used in args as: yolog --skip=10
  • Regular expressions are also accepted in grep and author.
  • Use inverted commas and escape character if using whitespace: yolog --grep "fixes\ bug"

Features

  • Tabulated commit history with shortened hashes, author, date and commit message (refs included if present).
  • Colored fields for better readability, with visualization of commit graph.
  • Vertical as well as horizontol pagination for longer commit history / smaller terminal window.
  • Flexibility to change color of any part of log by a single command.

Contributing

Feel free to file bugs, ask questions and suggest enhancements through Issues and Pull Requests !

License

Yolog is released under MIT 2016 License.

The MIT License (MIT) Copyright (c) 2016 Karan Desai Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/mirrors/yolog.git
git@gitee.com:mirrors/yolog.git
mirrors
yolog
yolog
master

搜索帮助