Settings

Theme

[FOR GIT USERS] YoLog – Lightweight Wrapper to Beautify Your Git Logs

github.com

6 points by d4rth_s1d10us 10 years ago · 8 comments

Reader

ironislands 10 years ago

Wow ! This serves as a very lightweight plugin to git. I am no expert at handling git related manners. I am a layman who adds, commits, pushes, pulls.

Thanks for this beautiful and compact representation. Cheers :-)

YeGoblynQueenne 10 years ago

Nope, don't like it. The built-in git commit log is plain but space-efficient, displaying all you need in a small number of columns. If you want a commit graph you can get it just fine with git log --graph.

Short, this doesn't seem to to do anything you can't do with plain git already and what it does is not as good as what git does by default.

Edit: apologies to the project maintainer btw, but I really don't see the point.

  • d4rth_s1d10usOP 10 years ago

    I respect your opinion. I had a personal desire for a colourful log, and wanted better customization. Initially I set an alias and was good to go, but then I just sat for two hours and packaged it using setuptools.

    For future versions I am planning one command change in the theme of git logs, and possibly setting up themes through config files.

    The resulting library is a mere 5 KB in size and I got a hang of writing 'yolog' and getting the output :-)

dr_win 10 years ago

This is what I added to my ~/.gitconfig. Achieved similar results.

[format] pretty = format:%<(10)%C(yellow)%h%Creset %<(100,trunc)%s %<(30)%Cblue%ad%Creset %C(magenta)%ae%Creset

  • d4rth_s1d10usOP 10 years ago

    I initially went with a similar approach. But then I locally worked on a few repos locally where I am the author of all commits, so I can strip off name and email for those repos. I know per-repository gitconfigs can exist, but I decided a small wrapper would be more efficient.

    Version 0.2.0 is just a minimal functional version, but I am planning to add configuration options where you can turn off, reorder columns, change date format, do anything with a simple single line commands.

  • ironislands 10 years ago

    I tried it, yours is a bit different, if your columns are smaller than the size you declared it leaves that extra white space, while yolog autofits columns.

    I like refs better than email. Thanks for informing, i cannot understand this syntax, can you provide a link to understand ?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection