You can enforce a portion of that directly in your .gitconfig:
[alias]
# Show top level repository
root = rev-parse --show-toplevel
I have found that useful over time.