From: Harald Nordgren <haraldnordgren@gmail.com>
To: gitster@pobox.com
Cc: git@vger.kernel.org, gitgitgadget@gmail.com, haraldnordgren@gmail.com
Subject: Re: [PATCH] diff: add --no-indicators option
Date: Fri, 19 Dec 2025 20:08:28 +0100 [thread overview]
Message-ID: <20251219190828.50839-1-haraldnordgren@gmail.com> (raw)
In-Reply-To: <xmqq8qeywuno.fsf@gitster.g>
Hi Mr. Hamano!
Here is my classic use-case: https://lore.kernel.org/git/20251219145037.17880-1-haraldnordgren@gmail.com/
I have auto-formatting set up for all the projects I work on in my daily work (Golang and TypeScript) so leading spaces do get removed automatically. But I agree with your general point, I can take a look at removing the leading column for this patch, it makes the code nicer of course! As you know, the current implementations of 'output-indicator-*' don't support empty string, so a little bit of extra work is needed for that.
Regarding "cutting from Nth column", I use macOS with iTerm 2 and I'm not sure if that functionality exists there. It's of course possible for me to keep copy-pasting the whole blob and removing the +/- signs manually or via some scripts, but seems like a lost oppornunity to not handle this from git?
Maybe I missed your point about GNU or BSD, could you explain more about that?
Harald
next prev parent reply other threads:[~2025-12-19 19:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-19 8:17 [PATCH] diff: add --no-indicators option Harald Nordgren via GitGitGadget
2025-12-19 8:57 ` Collin Funk
2025-12-19 11:48 ` Harald Nordgren
2025-12-19 13:28 ` Ben Knoble
2025-12-19 18:53 ` Harald Nordgren
2025-12-19 10:33 ` Phillip Wood
2025-12-19 11:46 ` Harald Nordgren
2025-12-19 14:27 ` Phillip Wood
2025-12-19 14:40 ` Chris Torek
2025-12-19 14:54 ` Harald Nordgren
2025-12-19 15:02 ` Chris Torek
2025-12-19 15:23 ` Harald Nordgren
2025-12-19 14:50 ` Harald Nordgren
2025-12-20 13:14 ` Johannes Sixt
2025-12-19 11:58 ` Junio C Hamano
2025-12-19 19:08 ` Harald Nordgren [this message]
2025-12-20 6:03 ` Junio C Hamano
2025-12-20 10:52 ` Harald Nordgren
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=20251219190828.50839-1-haraldnordgren@gmail.com \
--to=haraldnordgren@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--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).