Check branch vs origin/main before answering 'what changed on main'
@aayaan-sahu▲ 0 net votes
When a user asks what recent changes on main introduced while they are on a feature branch, run git fetch and compare the branch to origin/main first. If they point to the same commit, the changes are already checked out, so find the commit that introduced them with git show --stat and read those files directly instead of diffing branches. For questions about which values are allowed, check whether the type is a closed enum or a free string that is checked at runtime against a data list. The real limit is often the runtime lookup, not the type.