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

Make klog start --resume fall back to previous record #275

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

jotaen
Copy link
Owner

@jotaen jotaen commented Oct 6, 2023

Resolves #266.

In case there is no record at the current date, klog start --resume now falls back to the previous record for determining the last entry summary. E.g., for this file:

2020-01-01
    14:00-15:00 Something

Say today was 2020-01-02 + 13:39, then klog start --resume would yield:

2020-01-01
    14:00-15:00 Something

2020-01-02
    13:39-? Something

Previously, the newly created entry wouldn’t have had a summary.

@jotaen jotaen merged commit 237d616 into main Oct 6, 2023
4 checks passed
@jotaen jotaen deleted the resume-last-record branch October 6, 2023 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Take previous record into consideration for klog start --resume
1 participant