git --exclude matches refs by short name for --branches/--tags/--remotes but full name for --all
Statement#
git's rev-list/log --exclude=<glob> matches refs by their short name (base-stripped) for --branches/--tags/--remotes, but by the full refname for --all. So to reproduce git log --exclude=... --tags, you must strip refs/tags/ etc. before matching, while --all/refs/rgit/* matches the full refs/rgit/undo. Because rgit's log only supports --all (no branches/tags/remotes args), the walk can match full names and be correct for --all; rev-list keeps its own base-stripping for the per-set globs.
Evidence#
Empirically tested with git 2.x: git log --exclude=v2.0 --tags excludes the v2.0 tag but --exclude=refs/tags/v2.0 --tags does not; same for --branches --exclude=main (excludes) vs --exclude=refs/heads/main (does not). For --all, --exclude=refs/rgit/* matches the full refname. Arg order also matters: --exclude=X --all works, --all --exclude=X does not.