I often need to run certain git commands (usually git log) on files in many different repositories. I would like a way for git to automatically run commands such as
git log --oneline /full/path/to/file/in/other/repo
in the following manner:
git -C /full/path/to/file/in/other log --oneline /full/path/to/file/in/other/repo
without having to type
-C /full/path/to/file/in/other or changing directory manually. I would like git to infer from the full path what repository the file is in.