poll: when you see this message in `git status`:

”Your branch is up to date with 'origin/main’.”

do you know that your branch may not actually be up to date with the `main` branch on the remote?

yes
63.6%
mostly yes
15.7%
no
7.5%
what?
13.3%
Poll ended at .
(i've been wondering if there's a world where it's possible to convince the folks who make git to change that message to add “... as of 5 minutes/3 days/6 years ago”, but I think it might be hard to implement)

@b0rk the general case slams into the possibility of multiple remotes. (I mean, I'm a cabbage and my personal repository has multiple remotes, that's how I back it up.)

"Nothing's different that we know about. Ask a remote?" or similar might be a better message anyway.

@graydon @b0rk No, since that message is describing the status relative to a specific remote tracking branch, origin/main; so the extra information would only need to be about origin/main. And this information is already present in the reflog; it knows the last time that was updated.

@unlambda @b0rk Dim recollection says you don't get that specific remote tracking branch message when you didn't clone the repo/don't have a default remote.

In that specific extremely common case, sure, you could ask the reflog. But I wouldn't want to try to talk the git maintainers into considering that a general solution.