Commit a0d43d16 authored by Grégory Mounié's avatar Grégory Mounié
Browse files

Passage à minted (shell-session) de on-disk-format

Met en lumière les lignes avaec alert et grise un peu les autres
(effet de bord sympa du passage à minted) Glitch avec l'option
escapeinside et les strings, contourné en splittant le bloc de code en
deux
parent 756e2420
......@@ -4,6 +4,7 @@
\usepackage{tikz}
\usetikzlibrary{shapes}
\usepackage{moy-bouveret-tikz}
\usepackage{minted}
\usepackage{comment}
\title{Understanding Git}
......@@ -15,7 +16,7 @@
\institute[first.last@imag.fr]{[first].[last]@imag.fr\\
\url{http://recherche.noiraudes.net/resources/git/Slides/\jobname.pdf}}
\date{2020}
\date{2021}
\begin{document}
%\begin{comment}
......@@ -147,9 +148,9 @@
\begin{frame}[fragile]
\frametitle{Git objects: On-disk format}
\footnotesize
\begin{semiverbatim}
\begin{minted}[escapeinside=||]{console}
$ git log
commit \alert{7a7fb77be431c284f1b6d036ab9aebf646060271}
|commit \alert{7a7fb77be431c284f1b6d036ab9aebf646060271}|
Author: Matthieu Moy <Matthieu.Moy@imag.fr>
Date: Wed Jul 2 20:13:49 2014 +0200
......@@ -159,21 +160,24 @@ $ find .git/objects/
.git/objects/fc
.git/objects/fc/264b697de62952c9ff763b54b5b11930c9cfec
.git/objects/7a
.git/objects/\alert{7a/7fb77be431c284f1b6d036ab9aebf646060271}
|.git/objects/\alert{7a/7fb77be431c284f1b6d036ab9aebf646060271}|
.git/objects/50
.git/objects/50/a345788a8df75e0f869103a8b49cecdf95a416
.git/objects/26
.git/objects/26/27a0555f9b58632be848fee8a4602a1d61a05f
\end{semiverbatim}
\end{minted}
\end{frame}
\begin{frame}[fragile]
\frametitle{Git objects: On-disk format}
\footnotesize
\begin{semiverbatim}
\begin{minted}{shell-session}
$ echo foo > README.txt; git add README.txt
$ git commit -m "add README.txt"
[master \textbf{5454e3b}] add README.txt
\end{minted}
\vspace{-1.2em}
\begin{minted}[escapeinside=||]{shell-session}
|{[}master \alert{5454e3b}{]} add README.txt|
1 file changed, 1 insertion(+)
create mode 100644 README.txt
$ find .git/objects/
......@@ -185,9 +189,9 @@ $ find .git/objects/
.git/objects/25
.git/objects/25/7cc5642cb1a054f08cc83f2d943e56fd3ebe99
.git/objects/54
.git/objects/\alert{54/54e3b}51e81d8d9b7e807f1fc21e618880c1ac9
|.git/objects/\alert{54/54e3b}51e81d8d9b7e807f1fc21e618880c1ac9|
...
\end{semiverbatim}
\end{minted}
%$
\end{frame}
......@@ -216,7 +220,7 @@ $ find .git/objects/
\begin{frame}[fragile]
\frametitle{On-disk format: Pack files}
\footnotesize
\begin{semiverbatim}
\begin{minted}[escapeinside=||]{console}
$ du -sh .git/objects/
68K .git/objects/
$ git gc
......@@ -231,7 +235,7 @@ $ find .git/objects/
.git/objects/info
.git/objects/info/packs
$
\end{semiverbatim}
\end{minted}
\vspace{-0.5cm}
\begin{center}
\large
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment