apply
A tool for applying sourcehut-hosted patchsets to local repos. It also supports sending the mbox URL of a patchset on stdout, allowing for composition with other tools like review
.
status
Currently a barely-working prototype to demonstrate the concept. Use with caution.
install
go install git.sr.ht/~whereswaldon/apply@latest
use
Set SRHT_TOKEN
to a Personal Access Token for sourcehut.
Alternatively, set SRHT_ASK_TOKEN
to a command that will produce your token on stdout when executed. This allows easy integration with password managers. If using pass
, export SRHT_ASK_TOKEN="pass tokens/srht"
or similar should suffice. Add that to your shell initialization to make it persistent.
In your terminal, navigate to a repo that you want to patch.
Make sure that you've set git config --local sendemail.to
to the address of the srht mailing list for the repo.
Then, just apply
.
license
Dual MIT/Unlicense