Skip to content

Conversation

ChristianAvila
Copy link
Contributor

@ChristianAvila ChristianAvila commented Nov 23, 2023

  • Include a switch to enable commit when the user close the window
  • Extend the git commit up to 24 hours

Related conversation in the forums

image

The are a lot of translation missing


UPDATE

@andelf
Copy link
Collaborator

andelf commented Jan 17, 2024

@ChristianAvila Thanks. I've added some more refactoring based on your changeset.

  • Remove the "Restart App to take effect" restriction, now the settings can be changed on the fly
  • Move before-close hook to "close" handler
  • Reverse the setting logic, since "disable" is counterintuitive
  • Event handler debouncer

The title of this Pull Request is also edited.

@andelf andelf changed the title feat: Add new switch to control commit on close and extend the commit seconds Enhance Git auto commit: commit on close, change settings on-the-fly, larger auto commit interval Jan 17, 2024
@ChristianAvila
Copy link
Contributor Author

Thank you, @andelf. I truly appreciate your help.

ChristianAvila and others added 3 commits January 19, 2024 10:09
@andelf
Copy link
Collaborator

andelf commented Jan 19, 2024

Let's ship this. 🚀

@andelf andelf merged commit 095be37 into logseq:master Jan 19, 2024
@andelf
Copy link
Collaborator

andelf commented Jan 19, 2024

It's already included in the nightly release.
https://github.com/logseq/logseq/releases/tag/nightly

@andelf andelf mentioned this pull request Jan 30, 2024
@turtaf turtaf mentioned this pull request Feb 8, 2024
2 tasks
@Pxter7777
Copy link

Hi, I'm using 0.10.9 on Windows 10.
Git auto commit in fixed interval works fine for me, but the "Git commit on window close" doesn't, Logseq won't commit after I close it, is it a bug or did I misunderstand the feature?

@ChristianAvila ChristianAvila deleted the git-on-close branch September 3, 2024 23:25
@ChristianAvila
Copy link
Contributor Author

Hi @Pxter7777, I tested the feature only on MacOS, and it works as expected. I'm not sure if the window manager behaves differently on Windows, but on MacOS, when you "close" the app, it continues running in the background. During that time, Logseq creates the commit.

* 918427b - (HEAD -> master) Auto saved by Logseq (3 minutes ago) <ChristianAvila>
* b53513f - Auto saved by Logseq (3 minutes ago) <ChristianAvila>
* 5c35fea - Auto saved by Logseq (3 minutes ago) <ChristianAvila>

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.

Is it possible to configure longer commit intervals or auto combine many local commits into single one on daily basis?
3 participants