Osekai / osekai

the home of alternative rankings, in-depth profile info, medal solutions, hundreds of versions, and more - we're working on a new website version, we'll open source it when it's ready!
https://osekai.net
MIT License
56 stars 13 forks source link

gitinfo: Refactor the thing #207

Closed EXtremeExploit closed 1 year ago

EXtremeExploit commented 1 year ago

https://user-images.githubusercontent.com/30161277/210027497-7009031b-90dd-4ce8-945e-6bc13119b112.mp4

on normal branchs it works as expected, like before detached head: show show HEAD as branch name without any link on pr: show pr/username/prId as branch name with link the the pull request

also now the date uses the actual date of the commit, not the last time of the modified file currently on mobiles it looks a bit cut of because of the wider debug panel, had to do it to fit the pr branch names c:, so i need a way to make it look nicer on phones

Tanza3D commented 1 year ago

image date doesn't seem to work for me when checked out to this pr, probably the way i checked it out

but it does throw some errors image

EXtremeExploit commented 1 year ago

how are you checking out to the pr?

Tanza3D commented 1 year ago

gh pr checkout 207

EXtremeExploit commented 1 year ago

what is the output of git rev-parse HEAD ?