Skip to content

refactor(vcs): shared bootstrap preamble#54

Merged
dlyongemallo merged 1 commit intomainfrom
vcs_shared_bootstrap
Mar 28, 2026
Merged

refactor(vcs): shared bootstrap preamble#54
dlyongemallo merged 1 commit intomainfrom
vcs_shared_bootstrap

Conversation

@dlyongemallo
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings March 24, 2026 11:07
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors VCS adapter bootstrapping to share a common “bootstrap preamble” in VCSAdapter, reducing duplicated executable-check/error-reporting logic across adapters.

Changes:

  • Added VCSAdapter.bootstrap_preamble() to standardize bootstrap initialization + executable validation and provide a shared error reporter.
  • Updated Git/Hg/Jj/P4 adapters to use the shared preamble.
  • Added functional tests covering bootstrap_preamble() behavior.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
lua/diffview/vcs/adapters/p4/init.lua Uses shared bootstrap preamble before running p4 info connectivity check.
lua/diffview/vcs/adapters/jj/init.lua Uses shared bootstrap preamble before version detection.
lua/diffview/vcs/adapters/hg/init.lua Uses shared bootstrap preamble before version detection/parsing.
lua/diffview/vcs/adapters/git/init.lua Uses shared bootstrap preamble before git version detection/semver check.
lua/diffview/vcs/adapter.lua Introduces VCSAdapter.bootstrap_preamble() helper.
lua/diffview/tests/functional/bootstrap_spec.lua Adds functional coverage for the new preamble helper.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lua/diffview/vcs/adapter.lua Outdated
Comment thread lua/diffview/vcs/adapter.lua
@dlyongemallo dlyongemallo force-pushed the vcs_shared_bootstrap branch from 10c35d6 to 82e3007 Compare March 25, 2026 09:30
@dlyongemallo dlyongemallo merged commit 5452917 into main Mar 28, 2026
2 checks passed
@dlyongemallo dlyongemallo deleted the vcs_shared_bootstrap branch March 28, 2026 08:30
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.

2 participants