Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to make git blame date more precise #1546

Closed
Cheldon opened this issue Jun 15, 2021 · 5 comments
Closed

Add option to make git blame date more precise #1546

Cheldon opened this issue Jun 15, 2021 · 5 comments
Assignees
Labels
feature New feature or request
Milestone

Comments

@Cheldon
Copy link

Cheldon commented Jun 15, 2021

It is really useful to see the "ago" time in days, weeks, then months, but once it goes to years it loses a lot of precision. "1 year ago" can mean 365 days or it can mean (2 years - 1 day).

I think knowing something was 14 months ago would be more useful than an ambiguous "1 year" = 12-24 months ago. But after 24 months I wouldn't want as much precision.

Perhaps the best option would be to show "1 year, 2 months ago" instead of an arbitrary cutoff (like 12 or 24) for when months turn into years.

Maybe there's a way to use something from agoOrDate or gitlens.defaultDateSource?

Created feature request from Q&A #1539

@Cheldon Cheldon added feature New feature or request triage Needs to be looked at labels Jun 15, 2021
@eamodio eamodio removed the triage Needs to be looked at label Jun 22, 2021
@eamodio eamodio added this to the Soonish™ milestone Jun 22, 2021
@thewindsofwinter
Copy link
Contributor

Hi! I could work on this if no one's doing it already, although it might take me a bit :)

@Cheldon
Copy link
Author

Cheldon commented Mar 8, 2022

Maybe gitlens updated recently because I noticed today my gitlens said "You, last year" instead of "You, a year ago" but the date is October 2020 so "last year" isn't even correct here. This is one of the places where "You, 17 months ago" would make more sense to me.

eamodio added a commit that referenced this issue Mar 9, 2022
@eamodio
Copy link
Member

eamodio commented Mar 9, 2022

In GitLens 12.0.2 (should be out once the CI finishes), it will now show dates >= 1 year but < 2 years to be shown in months. Hopefully that addresses most of the request here.

@Cheldon
Copy link
Author

Cheldon commented Mar 9, 2022

Tried it out and looks great, thanks!

@Cheldon Cheldon closed this as completed Mar 9, 2022
@eamodio eamodio self-assigned this Mar 10, 2022
@eamodio eamodio modified the milestones: Soonish™, Shipped Mar 10, 2022
eamodio added a commit that referenced this issue Mar 25, 2022
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants