(This answer originally spoke of refspecs, which turned out to be inconsequential and incorrect.)
As lrineau's answer correctly points out the character : in this case is part of the pathspec syntax.
The documentation for pathspecs is annoyingly hard to find, but there is a gitglossary man page, available either by entering man gitglossary or by visiting this web page .
Relevant Part:
The pathspec property starting with a colon : has special meaning. in short form, in the leading colon : should be zero or more “signature magic” (which optionally ends with another colon :), and the remainder is a template that will match the path. an optional colon that completes the magic signature may be omitted if the pattern begins with a character that cannot be a magic signature and is not a colon.
In long form ... [snip].
A “magic signature” consists of an ASCII character that is not alphanumeric.
top /
The magic word top (mnemonics: / ) makes the pattern matching the root of the working tree, even when you execute the command from within the subdirectory.
The output is similar to my original answer:: :/ refers to the root directory of the current working tree.
source share