progit2
progit2 copied to clipboard
Add missing status in Figure 2-1
It will be good to add a box for the status "Committed" (to the right of "Staged") in Figure 2-1, 'The Lifecycle of the Status of your Files', to make the representation complete by showing the status of a file that has been checked in.

This is the lifecycle of the files in the working directory. So, your working copy is different from the repository and that's why the state "Checked in" does not appear. It is implicit behind "Unmodified", "Modified" and "Staged" that there is a version of the file that is already checked in.
Got it, thanks! It's then a good idea to modify the caption as "The lifecycle of files in your working directory" to reflect the fact. (Call me a purist, but the lifecycle is for the files, and not their statuses as the caption indicates in the book.)
That's what "The lifecycle of the status of your files" implies: the described states are the one that you can read after a "git status".
Anyway, feel free to propose the change through a pull request.
Since figure 8 as it is know in version 2.1.348-2-ga76dfab, 2022-07-19 of the book is the same as in the first post by @jnair, maybe it is a time to close this issue?