git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RESEND] git-rebase.txt: rewrite docu for fixup/squash (again)

From
Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Date
Oct 21, 2023, 07:26 UTC
Message-ID
<ZTN9HgqH01iN2CGr@ugly>
In-Reply-To
<841c3b59-9e7c-4492-9d66-8af42c3222ea@xiplink.com>
On Fri, Oct 20, 2023 at 05:40:01PM -0400, Marc Branchaud wrote:
Show 5 quoted lines
>I think the original text's "those identified by" is a bit vague: Does 
>"those" mean "messages" or "commits"?  The sentence reads like "those" 
>stands for "messages", but then of course you don't identify *messages* 
>with "squash" commands.
>
fair enough, though the repetition makes it linguistically inferior.
>Maybe emphasize the word "only" in the sentence (i.e. spell it as 
>'only'). 
>
that seems excessive to me. i'm not assuming that my readers are dumb.
> To really drive the point home it could say something like
>	obtained 'only' from the "fixup -c" commit, dropping the
>	messages of all the other involved commits
>
as above.

also, i'm actually uneasy about including the exact behavior in the first place, as it codifies something questionable - a better response from git would be complaining about it. i will drop it.

Show 6 quoted lines
>> (having more than one "fixup -c" commit
>> +makes no sense, and only the message from the last one is used).
>
>"Makes no sense" seems a bit opinionated (although I agree with the 
>sentiment).
>

i'm not terribly worried about readers who have an aversion towards being told facts ... anyway, i will use "is incorrect" instead, as it seems more to the point.

>Also, you can legitimately have more than one "fixup -c" in the overall 
>instruction set, as long as there's at least one "pick" command in 
>between, e.g.
>

yes, but the context is a single fixup sequence. the above comments about readers and repetition apply here, too.

>[1] Makes me wonder if rebase should also support "squash -c"...
>

the distinction is that "squash" combines the messages, while "fixup" discards them, and the -c merely changes what is discarded. softening that up seems counter-productive to me.

thanks
Previous: Junio C Hamano
Message 6 of 6 in “[RESEND] git-rebase.txt: rewrite docu for fixup/squash (again)”
  1. Oswald BuddenhagenOct 20, 2023
  2. Marc BranchaudOct 20, 2023
  3. Junio C HamanoOct 20, 2023
  4. Marc BranchaudOct 20, 2023
  5. Junio C HamanoOct 21, 2023
  6. Oswald BuddenhagenOct 21, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.