takaaki-kasai / git-foresta Goto Github PK
View Code? Open in Web Editor NEWgit-foresta: Text-based git log graph viewer
License: GNU General Public License v3.0
git-foresta: Text-based git log graph viewer
License: GNU General Public License v3.0
It seems in your very first commit, you removed support for pretty:
"pretty=s" => sub {}, # ignore
This is unfortunate, as that is the reason I cannot use git-foresta inside of vim-flog. Vim-flog needs to be able to insert some special characters so that it can see where the commit hash begins, so it runs:
git-forest --pretty='format:__FSTART__%D__FSEP__%h__FSEP____DSTART__%Cblue%ad%Creset %C(yellow)[%h]%Creset %Cgreen{%an}%Creset%Cred%d%Creset %s__DEND____FEND__'
I tried re-adding like so:
- "pretty=s" => sub {}, # ignore
+ "pretty=s" => \$Pretty_fmt,
but it prints garbage, probably because of some special characters being used:
$ ./git-forest --pretty='format:__FSTART__%D__FSEP__%h__FSEP____DSTART__%Cblue%ad%Creset %C(yellow)[%h]%Creset %Cgreen{%an}%Creset%Cred%d%Creset %s__DEND____FEND__'
__FSTART 1970-01-01 01:00 ○
__FSTART 1970-01-01 01:00 ◎
├─┐
__FSTART 1970-01-01 01:00 │ ●
├─┘
__FSTART 1970-01-01 01:00 ●
__FSTART 1970-01-01 01:00 ●
(...)
Oddly enough, even if I specify what is already the default value, it fails (commit message not shown):
$ git-forest --pretty='format:%H\t%at\t%an\t%C(reset)%C(auto)%d%C(reset)\t%s'
543537c2 1970-01-01 01:00 ○
45ffea85 1970-01-01 01:00 ◎
├─┐
d481a127 1970-01-01 01:00 │ ●
├─┘
a16adc14 1970-01-01 01:00 ●
7031fc34 1970-01-01 01:00 ●
(...)
I found out --date is not supported, this is a great tool that I would like to use in my work flow.
Anyway, thank you for this !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.