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

Re: [PATCH v1 2/3] doc: rebase: fixup! can take an object name

From
Philip Oakley <philipoakley@iee.org>
Date
Aug 14, 2016, 23:00 UTC
Message-ID
<BF74616BD9694719A6C0D6E75ACD9CE6@PhilipOakley>
In-Reply-To
<xmqqziofj90b.fsf@gitster.mtv.corp.google.com>
From: "Junio C Hamano" <gitster@pobox.com>
Show 8 quoted lines
> Philip Oakley <philipoakley@iee.org> writes:
>
>> Since 68d5d03 (rebase: teach --autosquash to match on sha1 in addition
>> to message, 2010-11-04) the commit subject can refer directly to the
>> destination object hash as a single word.)...
>
> That's not an object hash but an object name (see glossary); you got
> it right in the actual patch text, though ;-).

As noted in 1/3, the glossary also needs a fix (for those who read it) to make sure the name-value confusion is distinguished, with the potential 'object names' (colloquial) being via (git) 'revisions', while the cannonical object name is the (oid) sha1 hash. Somehow folk need pointing at the (broad) ways of spelling commit names rather than just the narrow sha. A bit of a finger and the moon problem.

Show 15 quoted lines
>
>> diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt
>> index 0387b40..66b789a 100644
>> --- a/Documentation/git-rebase.txt
>> +++ b/Documentation/git-rebase.txt
>> @@ -421,7 +421,8 @@ without an explicit `--interactive`.
>>  --no-autosquash::
>>  When the commit log message begins with "squash! ..." (or
>>  "fixup! ..."), and there is a commit whose title begins with
>> - the same ..., automatically modify the todo list of rebase -i
>> + the same "..." message, or a commit object name (standalone),
>> + automatically modify the todo list of rebase -i
>
> What's "(standalone)"?  I can understand the updated text and agree
> that it is better than the original without that part, though.

the 'standalone' is that it must be a single (standalone) word on the subject line immediately after the "fixup! "(s).

communicationg that one cannot have any extra textual notes after that word was the issue that 'standalone' tried to address.

-- Philip

Previous: Junio C HamanoNext: Junio C Hamano
Message 14 of 16 in “fixup fixup documenation”
  1. 0/3 fixup fixup documenationPhilip Oakley, Aug 14, 2016
  2. 1/3 doc: commit: --fixup/--squash can take a commit revisionPhilip Oakley, Aug 14, 2016
  3. Junio C HamanoAug 14, 2016
  4. Philip OakleyAug 14, 2016
  5. Junio C HamanoAug 14, 2016
  6. Philip OakleyAug 14, 2016
  7. Philip OakleyAug 16, 2016
  8. 3/3 doc: rebase: clarify fixup! fixup! constraintPhilip Oakley, Aug 14, 2016
  9. Junio C HamanoAug 14, 2016
  10. Philip OakleyAug 14, 2016
  11. Junio C HamanoAug 15, 2016
  12. 2/3 doc: rebase: fixup! can take an object namePhilip Oakley, Aug 14, 2016
  13. Junio C HamanoAug 14, 2016
  14. Philip OakleyAug 14, 2016
  15. Junio C HamanoAug 14, 2016
  16. Philip OakleyAug 14, 2016

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.