"Victoria Dye via GitGitGadget" <gitgitgadget@xxxxxxxxx> writes: > @@ -125,6 +124,24 @@ to point at the new commit. > dangling object has no references to it from any > reference or <<def_object,object>> in the <<def_repository,repository>>. > > +[[def_dereference]]dereference:: > + Referring to a <<def_symref,symbolic ref>>: the action of accessing the > + <<def_ref,reference>> pointed at by a symbolic ref. Recursive > + dereferencing involves repeating the aforementioned process on the > + resulting ref until a non-symbolic reference is found. > ++ > +Referring to a <<def_tag_object,tag object>>: the action of accessing the > +<<def_object,object>> a tag points at. Tags are recursively dereferenced by > +repeating the operation on the result object until the result has either a > +specified <<def_object_type,object type>> (where applicable) or any non-"tag" > +object type. > ++ All of the above makes sense. I would casually mention "peeling" here with cross reference, if I were writing this section. There already is enough cross reference in the other direction pointing this way. > +Referring to a <<def_commit_object,commit object>>: the action of accessing > +the commit's tree object. Commits cannot be dereferenced recursively. I personally consider this is weird misuse of the verb and is rarely used, but we see it in the description of tree-ish below. > +Unless otherwise specified, "dereferencing" as it used in the context of Git > +commands or protocols is implicitly recursive. Nice to see this spelled out like this. > @@ -444,6 +461,12 @@ exclude;; > of the logical predecessor(s) in the line of development, i.e. its > parents. > > +[[def_peel]]peel:: > + Synonym for object <<def_dereference,dereference>>. Most commonly used > + in the context of tags, where it refers to the process of recursively > + dereferencing a <<def_tag_object,tag object>> until the result object's > + <<def_object_type,type>> is something other than "tag". "object dereference" is not defined anywhere (yet). "Most commonly used in the context of tags" implies that objects other than tags can be "peeled" and "object dereference" is a word to refer to peeling either "commit" or "tag", but we would want to be a bit more clear and explicit. Let's either define "object dereference", or better yet, avoid saying "object dereference" here and instead say something like: "Synonym for dereference when used on tags and commits". I've never seen "peel" used for commits, though. So another improvement might be to say "peel" is "an act of dereferencing a tag" here. Thanks.