diff options
author | Eric Wong <e@80x24.org> | 2021-10-26 10:35:55 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-26 17:43:57 +0000 |
commit | 6d78574a7b8084a9415b4168262207ebe54e5feb (patch) | |
tree | e2e0b96306f0916dc7149b8138700d5d73152eea /Documentation/lei-p2q.pod | |
parent | ec031825967ac3eb89df4e71ab85ca230358ca70 (diff) | |
download | public-inbox-6d78574a7b8084a9415b4168262207ebe54e5feb.tar.gz |
The LeiInput backend now allows p2q to work like any other command which reads .eml, .patch, mbox*, Maildir, IMAP, and NNTP input. Running "git format-patch --stdout -1 $COMMIT" remains supported. This is intended to allow lower memory use while parsing "git log --pretty=mboxrd -p" output. Previously, the entire output of "git log" would be slurped into memory at once. The intended use is to allow easy(-ish :P) searching for unapplied patches as documented in the new example in the manpage.
Diffstat (limited to 'Documentation/lei-p2q.pod')
-rw-r--r-- | Documentation/lei-p2q.pod | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/lei-p2q.pod b/Documentation/lei-p2q.pod index 2e0b1ab6..4bc5d25f 100644 --- a/Documentation/lei-p2q.pod +++ b/Documentation/lei-p2q.pod @@ -77,6 +77,12 @@ Suppress feedback messages. # to view results on a remote HTTP(S) public-inbox instance $BROWSER https://example.com/pub-inbox/?q=$(lei p2q --uri $COMMIT_OID) + # to view unapplied patches for a given $FILE from the past year: + echo \( rt:last.year.. AND dfn:$FILE \) AND NOT \( \ + $(git log -p --pretty=mboxrd --since=last.year $FILE | + lei p2q -F mboxrd ) + \) | lei q -o /tmp/unapplied + =head1 CONTACT Feedback welcome via plain-text mail to L<mailto:meta@public-inbox.org> |