From: Junio C Hamano <gitster@pobox.com>
To: "Elijah Newren via GitGitGadget" <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org, Elijah Newren <newren@gmail.com>
Subject: Re: [PATCH] sequencer: make it clearer that commit descriptions are just comments
Date: Thu, 15 May 2025 06:58:02 -0700 [thread overview]
Message-ID: <xmqqzffe2cyd.fsf@gitster.g> (raw)
In-Reply-To: <pull.1923.git.1747275627422.gitgitgadget@gmail.com> (Elijah Newren via GitGitGadget's message of "Thu, 15 May 2025 02:20:27 +0000")
"Elijah Newren via GitGitGadget" <gitgitgadget@gmail.com> writes:
> suggesting that users are (a) only using one-line commit messages, and
> (b) not understanding that the commit summaries are merely helpful
> comments to help them find the right hashes.
>
> It may be difficult to correct users' poor commit messages, but we can
> at least try to make it clearer that the commit summaries are not
> directives of some sort by inserting a comment character. Hopefully
> that leads to them looking a little further and noticing the hints at
> the bottom to use 'reword' or 'edit' directives.
Cute and clever.
> Last commands done (2 commands done):
> - pick $COMMIT2 two_split
> - edit $COMMIT3 three_split
> + pick $COMMIT2 # two_split
> + edit $COMMIT3 # three_split
> Next command to do (1 remaining command):
> - pick $COMMIT4 four_split
> + pick $COMMIT4 # four_split
> (use "git rebase --edit-todo" to view and edit)
These show the intentions quite well. I think all places the
addition of '#' is done at the output layer, and the matching of
commits for the purpose of --autosquash should be done solely using
the internal representation without '#', this change should not
break anything, I would think, that we internally have.
Breaking custom todo-editors the users may have is a different
story, but if they are somehow matching against the first line of
the commit log message when there prominently is a short-but-unique
commit object name, they are simply crazy and not worth worrying
about, I would say ;-)
next prev parent reply other threads:[~2025-05-15 13:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-15 2:20 [PATCH] sequencer: make it clearer that commit descriptions are just comments Elijah Newren via GitGitGadget
2025-05-15 4:42 ` Reto
2025-05-15 10:16 ` Phillip Wood
2025-05-15 10:19 ` Phillip Wood
2025-05-15 13:02 ` Phillip Wood
2025-05-15 15:56 ` Junio C Hamano
2025-05-16 12:04 ` Ben Knoble
2025-05-16 15:22 ` Elijah Newren
2025-05-16 16:21 ` Junio C Hamano
2025-05-15 13:58 ` Junio C Hamano [this message]
2025-05-16 16:26 ` [PATCH v2] " Elijah Newren via GitGitGadget
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=xmqqzffe2cyd.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=newren@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.