Since it specifically knows about the `/` as a delimiter to determine prefixing, this isn't really a generic string function. It could become `git_path_equal_or_prefixed` and put into `src/path.h` maybe? I think there is something like this in the iterator code base, but I don't remember off the top of my head.