Re: [PATCH v2] glossary: add definitions for dereference & peel
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 14, 2023, 04:49 UTC
- Message-ID
- <xmqq1qct0wie.fsf@gitster.g>
- In-Reply-To
- <pull.1610.v2.git.1699917471769.gitgitgadget@gmail.com>
"Victoria Dye via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 9 quoted lines
> * Removed references to "peeling" a commit; the updated definition > discusses "peeling" only in the context of tags. > * Added a cross-link from "dereference" to "peel" (one already existed > for "peel" to "dereference"). > ... > +[[def_peel]]peel:: > + The action of recursively <<def_dereference,dereferencing>> a > + <<def_tag_object,tag object>>. > +
This was a bit surprising to me as I thought we would say "peel the tag once" vs "peel the tag repeatedly", but upon inspecting the existing code, documentation, and messages, we seem to mean by "to peel" to dereference a tag repeatedly until it no longer is a tag, which the new entry above exactly is (although "until the non-tag object is revealed" is missing).
Thanks. Will queue.