Search code examples
gitnamed-pipesmkfifo

Can git repository not include unix named fifo?


I think I know the answer to this, from experimentation, but my googling has found nothing definitive about it. So I'm looking for clarification. Consider

cd GitDirectory
mkfifo _my_named_pipe
git add _my_named_pipe
git status

The status command will show nothing. My conclusion is that you can't put named pipes in a git repository. Have I reached the correct conclusion? Or is there something I missed here?


Solution

  • You are correct, git only handles regular files and symbolic links (well, also trees and submodules, but they get handled specially internally).