git will replace %d with the current directory entry name only if it is a directory (not a file).
git
Go to the first, previous, next, last section, table of contents.