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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to