Skip to content

Implement auto-fetch similar to VSCode #140

@vogella

Description

@vogella

Description

The "auto fetch" feature in VS Code (specifically in its built-in Git integration) periodically runs git fetch in the background to keep your local repository up to date with the remote.
Here's how it works:

Setting: It's controlled by git.autofetch, which you can find in Settings (Ctrl/Cmd + ,).
It has three values:

false (default) — disabled
true — periodically fetches from all remotes
"all" — fetches from all remotes (same as true in recent versions)

Behavior: When enabled, VS Code runs git fetch automatically at a regular interval (default is every 3 minutes). You can customize the interval with the git.autofetchPeriod setting (value in seconds).
What it does in practice:

Updates your remote tracking branches (e.g., origin/main) so you can see if you're behind the remote.
The Source Control status bar indicator will show incoming/outgoing commits, letting you know when there are changes to pull.
It does not automatically merge or pull — your working tree stays untouched. It only fetches metadata.

Egit should offer similar functionality. Fetch is save to do and we can save time. If the background fetch is done, no popup or dialog should be shown to the user.

Motivation

Egit should offer similar functionality. Fetch is save to do and we can save time. If the background fetch is done, no popup or dialog should be shown to the user.

Alternatives considered

Cron Job

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions