mirror of
https://github.com/git/git.git
synced 2026-04-04 22:10:07 +02:00
Make auto-hiding dot-files optional on Windows.
Although a file starting with a dot usually ought to be hidden, there could be reasons users do not want it to happen automatically. Original patch by Erik Faye-Lund. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Acked-by: Johannes Sixt <j6t@kdbg.org>
This commit is contained in:
committed by
Johannes Schindelin
parent
8653dacef7
commit
996ff4a9ae
@@ -130,8 +130,9 @@ static int make_hidden(const char *path)
|
||||
#undef mkdir
|
||||
int mingw_mkdir(const char *path, int mode)
|
||||
{
|
||||
extern int hide_dotfiles;
|
||||
int ret = mkdir(path);
|
||||
if (!ret) {
|
||||
if (!ret && hide_dotfiles) {
|
||||
/*
|
||||
* In Windows a file or dir starting with a dot is not
|
||||
* automatically hidden. So lets mark it as hidden when
|
||||
|
||||
Reference in New Issue
Block a user