Usability issue: "Your branch is up to date"
- From
Manuel Quiñones <manuel.por.aca@gmail.com>
- Date
- Feb 3, 2025, 16:45 UTC
- Message-ID
- <CAPpV+OaMcViVKok5U0-4HaYyPMKEA7BBzw4t113uAaMndjs5Cg@mail.gmail.com>
Hi, I've been teaching Git to a group of young learners lately. They find it odd that commands like `git status` or `git switch main` say "Your branch is up to date with 'origin/main'" even when there are changes that can be fetched from the remote. My proposal: Add the timestamp of the last fetch to the message. For example:
``` $ git switch main Switched to branch 'main' Your branch is up to date with 'origin/main'. Last check was 2 hours ago. ```
It looks like the timestamp of file `.git/FETCH_HEAD` would be enough to implement it.
-- .. manuq ..