Skip to content

Conversation

raxod502
Copy link
Member

Support for custom entries in straight-hosts was previously a bit limited; there were various places in the code where specific built-in hosts had special cases or were hardcoded. This pull request changes the implementation to be fully generic, so that all features that were previously available for built-in hosts are now also available for custom ones. The way we do this is with a new format for the straight-hosts alist, but the old format is also supported for backwards compatibility (it's automatically translated to the new format if used).

This isn't quite done; I'm going to add a few more unit tests to exercise all the added and changed functionality, and also tweak the interface so that it's possible to configure the browser-friendly URL separately from the Git HTTPS URL.

(let* ((spec (alist-get host straight-hosts))
(domain (car spec))
(suffix (cadr spec)))
;;@FIX: It is sloppy to hardcode the sourcehut case here.
Copy link
Contributor

Choose a reason for hiding this comment

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

Glad to see this hardcoded sourcehut stuff go. Thank you!

@raxod502 raxod502 merged commit 6275da6 into develop Jun 9, 2025
5 checks passed
@raxod502 raxod502 deleted the rr-proper-host-support branch June 9, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants