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

Re: [PATCH/RFC] Add "first parent" to gitglossary

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 18, 2012, 18:56 UTC
Message-ID
<7vehspd9g6.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1331966864-31687-1-git-send-email-nkreitzinger@gmail.com>
Neal Kreitzinger <nkreitzinger@gmail.com> writes:
> Add "first parent" to "gitglossary" reference manual page.  Use the
> definition provided by Junio Hamano in a git newsgroup post[1].
>
> [1] http://article.gmane.org/gmane.comp.version-control.git/192523

As the message was written specifically for you, taking what *you* seem to already know, and more importantly what *you* seem to be misunderstanding, into account, I do not think it is suitable for general documentation without rewording.

Also, as Jonathan already pointed out, singling out "first parent" and placing it in the glossary is a very odd thing to do.

Also see
  http://thread.gmane.org/gmane.comp.version-control.git/192427/focus=192534

Three entries "parent", "child" and "ancestry" might want to have an explanation in the glossary to give new people the prerequisite, though.

child::
parent::
ancestry::
	Git represents a specific state of the project in its history with
	a commit object, which points at zero or more other commit objects
	as its "parents". When commit A points at commit B as its parent,
	we say "A is a child of B" and "B is a parent of A".
+
Parents of a commit is an ordered set, and because a commit object is
immutable, the parents of a commit do not change once it is created.
On the other hand, a new commit can be created, pointing at any other
commit as its parent, so children of a commit is not a mutable set,
and there is no inherent order among children.
Previous: Neal Kreitzinger
Message 2 of 2 in “Add "first parent" to gitglossary”
  1. Add "first parent" to gitglossaryNeal Kreitzinger, Mar 17, 2012
  2. Junio C HamanoMar 18, 2012

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.