mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
git/walk: dirs should not count as tracked
This commit is contained in:
parent
06cdd2915b
commit
d41236fef5
1 changed files with 6 additions and 3 deletions
|
@ -85,18 +85,21 @@ seen(Dir *dir)
|
|||
int
|
||||
checkedin(Idxent *e, int change)
|
||||
{
|
||||
Dir *d;
|
||||
char *p;
|
||||
int r;
|
||||
|
||||
p = smprint("%s/%s", bdir, e->path);
|
||||
r = access(p, AEXIST);
|
||||
if(r == 0 && change){
|
||||
d = dirstat(p);
|
||||
r = d != nil && !(d->mode&DMDIR);
|
||||
if(r && change){
|
||||
if(e->state != 'R')
|
||||
e->state = 'T';
|
||||
staleidx = 1;
|
||||
}
|
||||
free(p);
|
||||
return r == 0;
|
||||
free(d);
|
||||
return r;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in a new issue