From: Konstantin Tokarev <annulen@yandex.ru>
To: git@vger.kernel.org
Subject: Autosplit option for git add -p
Date: Fri, 7 Jun 2024 12:05:30 +0300 [thread overview]
Message-ID: <20240607120530.74297526@yuvnserver> (raw)
Hello all,
Is there any option in git to make `git add -p` split hunks by
default, just like 's' was pressed automatically? If no, how would one
implement such an option?
My use case: I've recently started working with big LaTeX document
having every paragraph as a single line. As a result, hunks quickly
become larger than screen, so that splitting is highly desirable.
Thanks.
next reply other threads:[~2024-06-07 9:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-07 9:05 Konstantin Tokarev [this message]
2024-06-08 10:43 ` Autosplit option for git add -p Christian Couder
2024-06-08 10:47 ` Dragan Simic
2024-06-08 18:53 ` Junio C Hamano
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=20240607120530.74297526@yuvnserver \
--to=annulen@yandex.ru \
--cc=git@vger.kernel.org \
/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).