Browse Source

Ignore dotfiles for -r

master
Bert Münnich 12 years ago
parent
commit
408b75a0b4
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      Makefile
  2. +1
    -1
      util.c

+ 1
- 1
Makefile View File

@@ -1,4 +1,4 @@
VERSION = git-20130209 VERSION = git-20130211


PREFIX = /usr/local PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man MANPREFIX = $(PREFIX)/share/man


+ 1
- 1
util.c View File

@@ -274,7 +274,7 @@ char* r_readdir(r_dir_t *rdir)


while (true) { while (true) {
if (rdir->dir != NULL && (dentry = readdir(rdir->dir)) != NULL) { if (rdir->dir != NULL && (dentry = readdir(rdir->dir)) != NULL) {
if (STREQ(dentry->d_name, ".") || STREQ(dentry->d_name, "..")) if (dentry->d_name[0] == '.')
continue; continue;


len = strlen(rdir->name) + strlen(dentry->d_name) + 2; len = strlen(rdir->name) + strlen(dentry->d_name) + 2;


||||||
x
 
000:0
Loading…
Cancel
Save