Skip to content

Conversation

Aitai
Copy link
Contributor

@Aitai Aitai commented Jun 8, 2025

This PR introduces an automatic fetching feature that periodically fetches from all remotes.

Configuration

The auto-fetch feature is controlled by the following settings:

  • auto_fetch_enabled: A boolean to enable or disable the feature. It is false by default.
  • auto_fetch_interval: The time in milliseconds between fetches. Defaults to 300000 (5 minutes).
  • auto_fetch_on_startup: A boolean to perform a fetch immediately when Neogit starts. Defaults to false.

When enabled, Neogit will execute git fetch --all at the specified interval.

Closes #1670

@Aitai
Copy link
Contributor Author

Aitai commented Jun 14, 2025

Hey, thanks for the detailed feedback! I've implemented the requested changes.

The auto-fetch logic is now managed by each NeogitRepo instance, and the git.fetch function has been refactored to separate its core logic from user-facing side effects like notifications.

Let me know what you think!

@Aitai Aitai requested a review from CKolkey June 14, 2025 23:33
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.

Automatically fetch from remotes at an interval

2 participants