Again, something that cgit and GitHub implement a bit better.
cgit
Scene setting:
In clufter project, I have misc/git-distill-spec path serving as a (sort of) mount point, in terms of git submodule, for a separate distill-spec project.
clufter
misc/git-distill-spec
distill-spec
pagure.io (https://pagure.io/clufter/blob/master/f/misc):
pagure.io
git-distill-spec
Page not found (404)
cgit:
shows:
m--------- misc/git-distill-spec @ b774f32 0 log stats
GitHub (https://github.com/jnpkrn/clufter/tree/master/misc):
How does this look to you?
Or rather:
Yes, distinguishing submodule graphically would be great and also a minimum expected change. I've just noticed that symlinks (e.g., https://pagure.io/clufter/blob/master/f/root/project) are also not visually different. It would be preferable to have different icons for the two.
It's also a question if there should be some kind of semantic-aware hyperlink (follow the symlink or even submodule path within paguire.io if resolvable).
paguire.io
If you check the screenshot above you'll see that both link and sub-modules now have a different icon :)
Oh, true. I thought that what looks like two question marks denote just "not a regular file".
According to the doc it means "broken link" :)
Source: https://useiconic.com/open