grep: avoid resolving revision names in --no-index case