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