apply

command module
v0.0.0-...-517fa48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2021 License: MIT, Unlicense Imports: 22 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL