@@ -306,13 +306,13 @@ def animate(self) -> Tuple[Repo, FileTree, List[DiffedFile | Constant]]:
306306 STEP ()
307307
308308 # Rewinding !
309- command .on ().text = r"git \gkw{checkout} 45a5b65"
309+ command .on ().text = r"git \gkw{switch} -d 45a5b65"
310310 STEP ()
311311
312312 repo .highlight ("HEAD" )
313313 STEP ()
314314
315- repo .checkout_detached ("45a5b65" )
315+ repo .switch_detached ("45a5b65" )
316316 STEP ()
317317
318318 f_readme .mod = d_readme .mod = "m"
@@ -331,15 +331,15 @@ def animate(self) -> Tuple[Repo, FileTree, List[DiffedFile | Constant]]:
331331 repo .hi_off ("HEAD" )
332332 STEP ()
333333
334- command .on ().text = r"git \gkw{checkout} d1e8c8c"
334+ command .on ().text = r"git \gkw{switch} -d d1e8c8c"
335335 repo .highlight ("HEAD" )
336336 STEP ()
337337
338338 files .pop (f_margherita )
339339 d_margherita .off ()
340340 d_readme .clear ()
341341 d_readme .insert_lines (readme_text [0 ])
342- repo .checkout_detached ("d1e8c8c" )
342+ repo .switch_detached ("d1e8c8c" )
343343 STEP ()
344344
345345 repo .hi_off ("HEAD" )
@@ -354,10 +354,10 @@ def animate(self) -> Tuple[Repo, FileTree, List[DiffedFile | Constant]]:
354354 repo .hi_off ()
355355 STEP ()
356356
357- command .on ().text = "git checkout 17514f2"
357+ command .on ().text = "git switch -d 17514f2"
358358 STEP ()
359359
360- command .on ().text = r"git checkout \ghi{main}"
360+ command .on ().text = r"git switch \ghi{main}"
361361 repo .highlight ("main" )
362362 STEP ()
363363
@@ -366,7 +366,7 @@ def animate(self) -> Tuple[Repo, FileTree, List[DiffedFile | Constant]]:
366366 d_margherita .on ()
367367 d_regina .on ().reset ()
368368 d_readme .insert_lines (readme_text [1 ], 2 )
369- repo .checkout_branch ("main" )
369+ repo .switch_branch ("main" )
370370 STEP ()
371371
372372 repo .hi_off ("main" )
0 commit comments