gitfetch icon indicating copy to clipboard operation
gitfetch copied to clipboard

feat: repo depended stats

Open Matars opened this issue 1 year ago • 35 comments

if you run gitfetch in a folder with a .git it would be nice if ti could fetch dat and stats for the specific repo.

The graph can also be modified to be something in the format below - so instead of seeing the contribution graph you want want to view your GitHub timeline tree.

(horizontally not vertically as in the image)

Matars avatar Oct 21 '25 12:10 Matars

@Zeviraty I can in couple of minutes

Matars avatar Oct 22 '25 12:10 Matars

@Zeviraty

❯ gitfetch --graph-timeline

does not render the timeline for me, looking into why

Matars avatar Oct 22 '25 12:10 Matars

because you forced it to only work with --no-grid @Matars

Zeviraty avatar Oct 22 '25 13:10 Zeviraty

I didnt want to change that so i kept it (eventhough it was kinda weird DX)

Zeviraty avatar Oct 22 '25 13:10 Zeviraty

@Matars in the pr i only added rendering in the places where you already added it (because it was super broken)

Zeviraty avatar Oct 22 '25 13:10 Zeviraty

thank you for pointing that out, will fix @Zeviraty

Matars avatar Oct 22 '25 13:10 Matars

@Zeviraty works for me

Matars avatar Oct 22 '25 13:10 Matars

@Zeviraty if you want you can let me worry about the other section getting rendered correctly with the new graph

Matars avatar Oct 22 '25 13:10 Matars

You can use the _reverse_truncate function i created its basicly: abcdefghijklmnopqrstuvw -> reverse_truncate max_width=5 -> stuvw but then with support for ansi colors (thats what made it so hard)

Zeviraty avatar Oct 22 '25 13:10 Zeviraty

@Zeviraty --repo will now create a contribution graph for that specific repo, building from git (.git folder) not gh

pushed to dev

Matars avatar Oct 22 '25 22:10 Matars

Like i said like 5 times i used git and not github cli

Zeviraty avatar Oct 23 '25 07:10 Zeviraty

We should just show the last 5-10 commits

@Zeviraty i am referring to new feature to make the contribution graph (not timeline) build using the .got folder for repo specific stats

Matars avatar Oct 23 '25 07:10 Matars

Oh im so sorry

Zeviraty avatar Oct 23 '25 07:10 Zeviraty

No worries

Matars avatar Oct 23 '25 08:10 Matars

@Zeviraty closing this issue and merging dev -> main - further polishing can be done on main branch

Matars avatar Oct 24 '25 00:10 Matars