News for hackers. Stuff that matters.
Re:Git repository summary on your terminal by mncharity on Sunday October 27, 2019 @04:17PM (#21372106)
Patterns of commit activity might be shown using unicode sparklines and/or a color scale (foreground and/or background).

"C++ (41.75 %)" seems a lot of ink and space for "C++ 42%".

Re:Git repository summary on your terminal by babuskov on Sunday October 27, 2019 @02:54PM (#21371667)
Reminds me of Ohloh (now OpenHub) but for your own projects and on command line.
Re:Git repository summary on your terminal by app4soft on Sunday October 27, 2019 @07:09PM (#21373067)
Funny fact: actually there is OpenHub[0] app for Android, that is just GitHub client.

BTW, I just curios, is it possible install & use onefetch using Termux[1] on Android?

[0] https://apt.izzysoft.de/fdroid/index/apk/com.thirtydegreesra...

[1] https://apt.izzysoft.de/fdroid/index/apk/com.termux?repo=mai...

Re:Git repository summary on your terminal by mncharity on Sunday October 27, 2019 @04:25PM (#21372144)
Imagine one wished to collect interesting repo measures and visualizations. Any suggestions on fruitful places to scavenge?

"<This tool> has a nice one." "I frequently find myself checking a repo for <this measure>, and wish it was automated." "<Here's> a pretty way to present <measure>."

Re:Git repository summary on your terminal by chatmasta on Sunday October 27, 2019 @06:03PM (#21372728)
“gource” is pretty cool. It generates an animated history of all commits, visualized as authors pushing into files.
Re:Git repository summary on your terminal by mncharity on Sunday October 27, 2019 @10:37PM (#21373818)
It[1] has a surprising large number of videos...[2]

Hmm, the documentation supports their creation.[3] "Encourage your community to create videos" as a way to raise awareness of a code analytics tool... I'd not thought of that.

[1] https://gource.io/ [2] https://www.youtube.com/results?search_query=gource&sp=CAI%2... [3] https://github.com/acaudwell/Gource/wiki/Videos

Re:Git repository summary on your terminal by app4soft on Sunday October 27, 2019 @07:21PM (#21373111)
I just touch it - and it panicked :-/[0]

[0] https://github.com/o2sh/onefetch/issues/120

Re:Git repository summary on your terminal by lsllc on Sunday October 27, 2019 @04:23PM (#21372138)
Nice! In the 2nd screenshot, how is it showing the image? Is that a terminal that can render images, or some clever conversion to ascii art [there's some ascii art related code in the onefetch repo].
Re:Git repository summary on your terminal by dyanaraps on Sunday October 27, 2019 @04:50PM (#21372295)
It uses `kitty` terminal's built in support for images. [0][1]

[0] https://sw.kovidgoyal.net/kitty/graphics-protocol.html [1] https://github.com/o2sh/onefetch/blob/master/src/image_backe...

Note: iTerm2 also has its own image display protocol and for something more generic there is Sixel or w3mimgdisplay (from w3m).

Re:Git repository summary on your terminal by 1f60c on Sunday October 27, 2019 @04:34PM (#21372207)
I think it's iTerm-specific.
Re:Git repository summary on your terminal by enriquto on Sunday October 27, 2019 @04:39PM (#21372230)
this is possible with sixels, if you are really into it
Re:Git repository summary on your terminal by karimf on Monday October 28, 2019 @01:55AM (#21374611)
I know this won't be an accurate representation, but sometimes I want to know how many hours I've spent on a repository.

I used git hours for this [0], but it's not well maintained anymore (has some problem on newer node version). I'm curious whether anyone else need this functionality.

[0] https://github.com/kimmobrunfeldt/git-hours

Re:Git repository summary on your terminal by kakwa_ on Monday October 28, 2019 @06:52AM (#21375809)
An option to ignore some of the directories of the repository would be a nice addition (ex: ignoring ./vendor/ in golang repository).

Otherwise, nice tool, thanks for creating and sharing it.

Re:Git repository summary on your terminal by Waterluvian on Sunday October 27, 2019 @03:06PM (#21371718)
What's with the color palette at the bottom? Can I turn off the graphic?

Overall this is almost certainly becoming a staple of my toolbox.

Re:Git repository summary on your terminal by aquabeagle on Sunday October 27, 2019 @03:22PM (#21371804)
It's trying to be like neofetch for showing off your terminal theme on /r/unixporn
Re:Git repository summary on your terminal by esotericn on Sunday October 27, 2019 @03:15PM (#21371772)
Interestingly enough the color palette doesn't appear for me :)
Re:Git repository summary on your terminal by Waterluvian on Sunday October 27, 2019 @03:34PM (#21371860)
Wunderbar.
Re:Git repository summary on your terminal by esotericn on Sunday October 27, 2019 @03:53PM (#21371975)
Hahaha. Sorry, that wasn't meant to be a brag. I just know that I haven't turned anything off, so maybe it's a behaviour of a particular commit?

I installed via Cargo, version 1.6.5.

Re:Git repository summary on your terminal by achikin on Sunday October 27, 2019 @02:35PM (#21371560)
Is there a mac binary or homebrew formula?
Re:Git repository summary on your terminal by esotericn on Sunday October 27, 2019 @03:07PM (#21371719)
`cargo install onefetch` should work
Re:Git repository summary on your terminal by pm90 on Sunday October 27, 2019 @02:09PM (#21371387)
I thought this committed all my terminal commands to a git repo. It doesn’t but now I want something like that.
Re:Git repository summary on your terminal by ball_of_lint on Sunday October 27, 2019 @02:39PM (#21371587)
I hashed together something like this in my dotfiles a few years ago. Big parts were logging each command run to my own history files (marked with machine and date), rotating those logs, and a cronjob to sync it with GitHub.

Only took a few hours to set up.

Re:Git repository summary on your terminal by throwawaytoday5 on Sunday October 27, 2019 @04:39PM (#21372232)
Do you mean bash/zsh profiles or recent command history?
Re:Git repository summary on your terminal by pm90 on Sunday October 27, 2019 @06:19PM (#21372804)
Command history
Re:Git repository summary on your terminal by jjjbokma on Sunday October 27, 2019 @06:22PM (#21372820)
script -f filename ?
Re:Git repository summary on your terminal by dennisy on Sunday October 27, 2019 @02:21PM (#21371469)
You could do that with a GitHub action quite easily.