Skip to content

Offer to fetch more history when merge base fails in shallow clones#136

Merged
letmaik merged 1 commit intomasterfrom
fetch-more-history
Apr 18, 2026
Merged

Offer to fetch more history when merge base fails in shallow clones#136
letmaik merged 1 commit intomasterfrom
fetch-more-history

Conversation

@letmaik
Copy link
Copy Markdown
Owner

@letmaik letmaik commented Apr 18, 2026

When getMergeBase fails and the repository is a shallow clone, prompt the user to progressively deepen the clone until the merge base is found. Uses the VS Code Git API for fetching (proper auth support). Falls back to optional unshallowing as last resort.

Also:

  • Limit diff entries to 10,000 to avoid performance issues
  • Add timing to git command log output

When getMergeBase fails and the repository is a shallow clone,
prompt the user to progressively deepen the clone until the
merge base is found. Uses the VS Code Git API for fetching
(proper auth support). Falls back to unshallowing as last resort.

Also:
- Limit diff entries to 10,000 to avoid performance issues
- Add timing to git command log output
@letmaik letmaik merged commit 3424f94 into master Apr 18, 2026
2 checks passed
@letmaik letmaik deleted the fetch-more-history branch April 18, 2026 16:42
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.

1 participant