Skip to content

Make the Git HTTP server instance-based and storage-backed - #20

Merged
asim merged 9 commits into
masterfrom
refactor/embeddable-server
Sep 6, 2026
Merged

Make the Git HTTP server instance-based and storage-backed#20
asim merged 9 commits into
masterfrom
refactor/embeddable-server

Conversation

@asim

@asim asim commented Sep 6, 2026

Copy link
Copy Markdown
Owner

This starts the refactor toward a small embeddable Git server without changing the current command-line usage.

What changes

  • adds a Server type implementing http.Handler
  • moves request handling onto instance configuration rather than relying directly on global state
  • introduces Repository and Store
  • adds the default filesystem-backed store
  • keeps server.Handler() working for compatibility
  • adds basic filesystem store tests

Why

This creates the first clean abstraction boundary needed for pluggable repository storage and additional transports later, while continuing to use the native Git binary as the Git engine.

Follow-up

A next PR can expand Store with repository lifecycle operations (Create, Delete, List) and then add authorization/hooks independently of HTTP.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-06T05:12:43.678300Z 52fce60 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 52fce605ae

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread server/server.go Outdated
Comment thread server/server.go Outdated
Comment thread server/server.go Outdated
@asim
asim merged commit 159e741 into master Sep 6, 2026
2 checks passed
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