From: Johannes Sixt Date: Fri, 15 Jul 2016 05:56:20 GMT Subject: Re: [PATCH] git-clean: remove fifo, devices, socket files Message-ID: In-Reply-To: <1468550579-9298-1-git-send-email-avagin@openvz.org> Am 15.07.2016 um 04:42 schrieb Andrey Vagin: > Currently git-clean removes only links and files, but > there can be special files like fifo, sockets, devices. > > I think git-clean has to remove them too. I think that is not necessary. If you do mkfifo fifo && sudo mknod zero c 1 5 then 'git status' will not report them and 'git add' will not add them to a repository. Similarly, if you happen to have a special file under a name in your working tree where the repository has regular files, then 'git status' will report the names as modified, and 'git reset --hard' will replace the special files by the files recorded in the repository. IOW: These special files are invisible for Git unless it already knows the names. The latter case is outside 'git clean's domain, and the former case really means that special files in the working tree are left at the user's discretion. -- Hannes