From: "Theodore Ts'o" <tytso@mit.edu>
To: Junio C Hamano <gitster@pobox.com>
Cc: Sandra Snan <sandra.snan@idiomdrottning.org>,
git@vger.kernel.org, Dragan Simic <dsimic@manjaro.org>,
rsbecker@nexbridge.com
Subject: Re: first-class conflicts?
Date: Sun, 12 Nov 2023 10:21:43 -0500 [thread overview]
Message-ID: <20231112152143.GD35991@mit.edu> (raw)
In-Reply-To: <xmqqh6ltrs6t.fsf@gitster.g>
On Sat, Nov 11, 2023 at 10:31:54AM +0900, Junio C Hamano wrote:
> Correct but with a caveat: it is too easy for lazy folks to
> circumvent the safety by mistake with "commit -a".
>
> I wonder if it would help users to add a new configuration option
> for those who want to live safer that tells "commit -a" to leave
> unmerged paths alone and require the unmerged paths to be added
> explicitly (which may have to extend to cover things like "add -u"
> and "add .").
>
> Perhaps not. I often find myself doing "git add -u" after resolving
> conflicts and re-reading the result, without an explicit pathspec.
Maybe the configuration option would also forbit "git add -u" from
adding diffs with conflict markers unless --force is added?
I dunno. I personally wouldn't use it myself, because I've always
made a point of running "git diff", or "git status", and almost
always, a command like "make -j16 && make -j16 check" (or an aliased
equivalent) before commiting a merge.
But that's because I'm a paranoid s.o.b. and in my long career, I've
learned is that "you can't be paranoid enough", and "hope is not a
strategy". :-)
- Ted
next prev parent reply other threads:[~2023-11-12 15:22 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-06 21:17 first-class conflicts? Sandra Snan
2023-11-06 22:01 ` Dragan Simic
2023-11-06 22:34 ` Sandra Snan
2023-11-06 22:34 ` rsbecker
2023-11-06 22:45 ` Sandra Snan
2023-11-07 0:50 ` Theodore Ts'o
2023-11-11 1:31 ` Junio C Hamano
2023-11-11 7:48 ` Sandra Snan
2023-11-12 15:21 ` Theodore Ts'o [this message]
2023-11-12 23:25 ` Junio C Hamano
2023-11-07 11:23 ` Phillip Wood
2023-11-07 11:24 ` Sandra Snan
2023-11-07 8:16 ` Elijah Newren
2023-11-07 8:21 ` Dragan Simic
2023-11-07 9:16 ` Sandra Snan
2023-11-07 11:49 ` Phillip Wood
2023-11-07 17:38 ` Martin von Zweigbergk
2023-11-08 7:31 ` Elijah Newren
2023-11-08 18:22 ` Martin von Zweigbergk
2023-11-10 21:41 ` Elijah Newren
2023-11-12 7:05 ` Martin von Zweigbergk
2023-11-09 14:50 ` phillip.wood123
2023-11-08 6:31 ` Elijah Newren
2023-11-09 14:45 ` Phillip Wood
2023-11-10 22:57 ` Elijah Newren
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=20231112152143.GD35991@mit.edu \
--to=tytso@mit.edu \
--cc=dsimic@manjaro.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=rsbecker@nexbridge.com \
--cc=sandra.snan@idiomdrottning.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).