From: Alejandro Colomar <alx@kernel.org>
To: Junio C Hamano <gitster@pobox.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: [wishlist] git-add(1), git-restore(1): -U for more context (with -p)
Date: Sun, 13 Aug 2023 21:45:13 +0200 [thread overview]
Message-ID: <6b191540-c2b2-435e-667b-43c251b829fe@kernel.org> (raw)
In-Reply-To: <xmqq350mohgu.fsf@gitster.g>
[-- Attachment #1.1: Type: text/plain, Size: 718 bytes --]
On 2023-08-13 21:44, Junio C Hamano wrote:
> Alejandro Colomar <alx@kernel.org> writes:
>
>> It would be useful to have -U in git-add(1) and git-restore(1)
>> to be able to see more context in combination with -p.
>
> Even more useful would be to add commands to enlarge/shrink the
> context to the interactive prompt, wouldn't it? Not all hunks need
> unformly large context and having to decide how many lines of
> context to ask upfront and having to stick to the choice during the
> whole interactive session would be a bad interactive experience.
Yep, that would be even more useful! :)
--
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2023-08-13 19:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-13 19:21 [wishlist] git-add(1), git-restore(1): -U for more context (with -p) Alejandro Colomar
2023-08-13 19:44 ` Junio C Hamano
2023-08-13 19:45 ` Alejandro Colomar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6b191540-c2b2-435e-667b-43c251b829fe@kernel.org \
--to=alx@kernel.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).