All of lore.kernel.org
 help / color / mirror / Atom feed
* A confusing usage of the term 'successor' in the git glossary
@ 2010-10-31 18:06 Lee Doolan
  2010-11-01  8:38 ` Michael J Gruber
  0 siblings, 1 reply; 2+ messages in thread
From: Lee Doolan @ 2010-10-31 18:06 UTC (permalink / raw)
  To: git

In the gitglossary
(http://www.kernel.org/pub/software/scm/git/docs/gitglossary.html) I
see this:
,----
| chain
|
| A list of objects, where each object in the list contains a reference
| to its successor (for example, the successor of a commit could be one
| of its parents).
`----


don't you mean predecessor instead of successor?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: A confusing usage of the term 'successor' in the git glossary
  2010-10-31 18:06 A confusing usage of the term 'successor' in the git glossary Lee Doolan
@ 2010-11-01  8:38 ` Michael J Gruber
  0 siblings, 0 replies; 2+ messages in thread
From: Michael J Gruber @ 2010-11-01  8:38 UTC (permalink / raw)
  To: Lee Doolan; +Cc: git

Lee Doolan venit, vidit, dixit 31.10.2010 19:06:
> In the gitglossary
> (http://www.kernel.org/pub/software/scm/git/docs/gitglossary.html) I
> see this:
> ,----
> | chain
> |
> | A list of objects, where each object in the list contains a reference
> | to its successor (for example, the successor of a commit could be one
> | of its parents).
> `----
> 
> 
> don't you mean predecessor instead of successor?

In graph-theoretical terms, this is correct. Each commit contains
"pointers" (directed edges, arcs) pointing towards the parents. (There's
no way to point to children.) You can walk the graph only along directed
edges, i.e. towards parents. In that sense "parent" commits are the
successors (in the graph) of their "children".

So, there's an unavoidable conflict between the term in the underlying
data structure (directed acyclic tree) and the data it represents if you
thing of the latter as "childrenship" instead of "parentship".

Michael

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-01  8:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-31 18:06 A confusing usage of the term 'successor' in the git glossary Lee Doolan
2010-11-01  8:38 ` Michael J Gruber

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.