git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Usability issue: "Your branch is up to date"
@ 2025-02-03 16:45 Manuel Quiñones
  2025-02-03 16:56 ` Junio C Hamano
  0 siblings, 1 reply; 14+ messages in thread
From: Manuel Quiñones @ 2025-02-03 16:45 UTC (permalink / raw)
  To: git

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 ..

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-02-07  8:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-03 16:45 Usability issue: "Your branch is up to date" Manuel Quiñones
2025-02-03 16:56 ` Junio C Hamano
2025-02-04  0:10   ` Junio C Hamano
2025-02-04  0:28     ` Bram van Oosterhout
     [not found]       ` <CAPx1GveyP4+yn5NMgvO3JpbOwPRT5=tb9YBx7U1Ufvae7gFnHQ@mail.gmail.com>
     [not found]         ` <CAMoUM6LstYx3PJcx-Sz3Dfs-1BxF1uP373MO8+eknbO7j-S01Q@mail.gmail.com>
2025-02-04  0:51           ` Fwd: " Bram van Oosterhout
2025-02-04  2:08       ` D. Ben Knoble
2025-02-04 12:53         ` Manuel Quiñones
2025-02-05  3:55         ` Bram van Oosterhout
2025-02-04 12:38     ` Manuel Quiñones
2025-02-04 17:43       ` Junio C Hamano
2025-02-05  6:54         ` Patrick Steinhardt
2025-02-05 18:40           ` Junio C Hamano
2025-02-06  9:53             ` Patrick Steinhardt
2025-02-07  8:20               ` Karthik Nayak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).