From cf0c7ce3ce81b5c33cb149a7edc3efd99631a57d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 5 May 2021 10:46:37 +0000 Subject: lei rediff: regenerate diffs from stdin Sometimes a mailed patch is generated with non-ideal output, (lacking context, noisy whitespace changes, etc.), or a user wants to use the same external diff viewer they've configured git to use. Since we have SolverGit to regenerate arbitrary blobs from patches; this new command allows us to regenerate a diff with different options using the blobs SolverGit gives us. The amount of git-diff(1) options is mind numbing, so it's likely I missed some favorites or botched the getopt spec translation. This also fixes Inbox::base_url to check psgi.url_scheme before attempting to generate URLs and avoid uninitialized variable warnings. Oddly, the "lei blob" tests did not trigger these uninitialized warnings. Note: this will automatically import+index the message(s) it's regenerating, because solver relies on being able to lookup pre/postimage OIDs and read blobs. --- MANIFEST | 1 + 1 file changed, 1 insertion(+) (limited to 'MANIFEST') diff --git a/MANIFEST b/MANIFEST index b40147b0..7be07aa5 100644 --- a/MANIFEST +++ b/MANIFEST @@ -211,6 +211,7 @@ lib/PublicInbox/LeiMirror.pm lib/PublicInbox/LeiOverview.pm lib/PublicInbox/LeiP2q.pm lib/PublicInbox/LeiQuery.pm +lib/PublicInbox/LeiRediff.pm lib/PublicInbox/LeiRemote.pm lib/PublicInbox/LeiSavedSearch.pm lib/PublicInbox/LeiSearch.pm -- cgit v1.2.3-24-ge0c7