From 74803ac6b1aac5e943cc43953720742904901e98 Mon Sep 17 00:00:00 2001 From: Martijn Vermaat <martijn@vermaat.name> Date: Fri, 20 Jun 2014 14:32:27 +0200 Subject: [PATCH] Clarify HEAD --- branching/branching.tex | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/branching/branching.tex b/branching/branching.tex index 61b280f..efbedfb 100644 --- a/branching/branching.tex +++ b/branching/branching.tex @@ -69,9 +69,10 @@ \begin{frame} \frametitle{The current commit: \bt{HEAD}} \begin{itemize} - \item The current commit is called \bt{HEAD} (shown in blue). - \item \bt{HEAD} normally points to the current branch. - \item Or to a commit if there is no current branch. + \item The current commit is called \bt{HEAD} (shown in blue here). + \item \bt{HEAD} is actually a pointer to the current branch. + \item (Or to the current commit if there is no current branch -- this is + called detached head state.) \end{itemize} \vspace{1cm} \includegraphics[width=10cm]{images/head} @@ -82,7 +83,7 @@ \begin{itemize} \item Committing moves the current branch to the new commit. \item Of course, \bt{HEAD} moves with it. - \item If there is no current branch, only \bt{HEAD} moves. + \item (In detached head state, only \bt{HEAD} moves.) \end{itemize} \vspace{1cm} \includegraphics[width=10cm]{images/commit} -- GitLab