Re: [PATCH] date: remove approxidate_relative()
- From
René Scharfe <l.s.r@web.de>
- Date
- Apr 10, 2023, 20:52 UTC
- Message-ID
- <b17e05d5-deda-527f-1587-9f1cd7046a0b@web.de>
- In-Reply-To
- <20230410202536.GE104097@coredump.intra.peff.net>
Am 10.04.23 um 22:25 schrieb Jeff King:
Show 8 quoted lines
> > I'm not sure of the least-confusing way to address a single hunk, though > (by line number is one option, by hunk-number within the patch is > another). I suspect the best workflow for a user would be to > interactively say "show me more context for this hunk". Some viewers > have support for that (e.g., GitHub's web view of a diff). But handling > that for a one-shot CLI program is tricky, not to mention then feeding > it back to format-patch to generate the output you want to send. :)
So basically you propose a format-patch --interactive mode that shows each hunk and allows extending its context. This could work. For hunks that span multiple screens it might be a bit iffy -- or perhaps not, if the scrollback buffer of the terminal or console is big enough.
René