Add a button to jump to first and latest commit
See original GitHub issueHey! I’m the one who opened the issue to add the repo-age
feature, because I think it’s really interesting to know how a project was… in the beginning, and what was done first. Sometimes I spend a lot of time spamming the “Older” button to see what the first commits were. So if we could add these buttons it would be really really useful:
(or first page/last page, some websites use this term)
It would be very easy to make them, as we could just get the first commit hash, the number of commits and then generate an URL like https://github.com/Androz2091/AtlantaBot/commits/master?after=FIRSTCOMMITHASH+NUMBEROFCOMMITS&branch=master
.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Add a button to jump to first and latest commit #3455 - GitHub
Hey! I'm the one who opened the issue to add the repo-age feature, because I think it's really interesting to know how a...
Read more >How do you jump to the first commit in git? - Stack Overflow
To go the first commit of the repo, do. git checkout master; git log --reverse; The first entry in the output is the...
Read more >Commit and push changes to Git repository - JetBrains
If you want to append local changes to the latest commit instead of creating a separate commit, select the Amend option.
Read more >Git: Commits in Visual Studio Code - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >Tutorial: Make your first Git commit - GitLab Docs
Before we jump into steps, let's go over some basic Git concepts. ... Above the README.md file, view the text in the Last...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am not sure how the layout should be. But if anyone wants to send a PR, cherry-pick https://github.com/sindresorhus/refined-github/commit/e4728b616da839c8d0761700efbc74510aad29d3 to extract the function https://github.com/sindresorhus/refined-github/issues/3455#issuecomment-673753201
If we extract this part of the function, this feature would come for free since the
commitCount
would already be cached:https://github.com/sindresorhus/refined-github/blob/6bba1c5de1e8b609e010f252d72ff9c63af431a6/source/features/repo-age.tsx#L46-L63
Probably: