simonthum / git-sync

Safe and simple one-script git synchronization
773 stars 99 forks source link

modified to enable sync only after GIT_SYNC_INTERVAL #30

Open rambalachandran opened 1 year ago

rambalachandran commented 1 year ago

The current implementation of git-sync-on-inotify syncs continuously whenever an edit is made. This modification ensures that the sync waits until GIT_SYNC_INTERVAL until the next sync is made, thus reducing the number of commits

simonthum commented 1 year ago

Hi, this indeed looks very sensible!

One nit: There is a bunch of whitespace changes, could you please clean those up? I find it hard to review as it is.

rambalachandran commented 1 year ago

@simonthum apologies vscode messes with formatting for shell script that doesnt have a sh extension. I have fixed the formatting. Let me know if any additional changes need to be done

simonthum commented 1 year ago

Hi, it's fine now. Please rebase it to apply cleanly and I will accept the change.