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

fix(ui): warn about illegal git commit interval #4924

Merged
merged 1 commit into from Apr 15, 2022

Conversation

andelf
Copy link
Collaborator

@andelf andelf commented Apr 15, 2022

Fix #3162
Fix #2778

(let [value (-> (util/evalue event)
util/safe-parse-int)]
(if (and (number? value)
(< 0 value (inc 600)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am also curious why we set the maximum interval?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CC @tiensonqin
I personally prefer another approach: when max diff-lines is over xxx lines

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd also appreciate a different approach or a (way higher) maximum.
For people using Logseq throughout the day for small notes, a 10-min-commit is literally flooding someones git-activity.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seemayr Thanks. Created a new discussion for this! Welcome to share ideas.

#4928

This Pull request is only a temp fix to roll back to a legal state when setting value is not accepted.

Copy link
Contributor

@llcc llcc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tiensonqin tiensonqin merged commit dbd8e1e into logseq:master Apr 15, 2022
@andelf andelf deleted the fix/git-commit-interval branch April 15, 2022 14:07
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.

Can not update "Git auto commit seconds" Git auto commit frequency setting not being saved
4 participants