From: René Scharfe Date: Mon, 10 Apr 2023 20:52:01 GMT Subject: Re: [PATCH] date: remove approxidate_relative() Message-ID: In-Reply-To: <20230410202536.GE104097@coredump.intra.peff.net> Am 10.04.23 um 22:25 schrieb Jeff King: > > 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é