/*
* Copyright 1995, 2003 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*/
# define DEBUG_MATCH ( p4debug.GetLevel( DT_MAP ) >= 3 )
# define DEBUG_LIST ( p4debug.GetLevel( DT_MAP ) >= 4 )
class IgnoreTable;
struct IgnoreItem;
class StrArray;
class FileSys;
class Ignore {
public:
Ignore();
~Ignore();
int Reject( const StrPtr &path, const StrPtr &ignoreName )
{ return Reject( path, ignoreName, (char *)NULL ); }
int List( const StrPtr &path, const StrPtr &ignoreName,
const char *configName, StrArray *outList );
int Reject( const StrPtr &path, const StrPtr &ignName,
const char *configName, StrBuf *line = 0 );
int RejectDir( const StrPtr &path, const StrPtr &ignName,
const char *configName, StrBuf *line = 0 );
int RejectCheck( const StrPtr &path, int isDir,
StrBuf *line = 0 );
int GetIgnoreFiles( const StrPtr &ignoreName, int absolute,
int relative, StrArray &ignoreFiles );
private:
void BuildIgnoreFiles( const StrPtr &ignoreName );
int Build( const StrPtr &path, const StrPtr &ignoreName,
const char *configName );
void InsertDefaults( StrArray *list, const char *cfgName );
void Insert( StrArray *subList, const char *ignore,
const char *cwd, int lineno );
int ParseFile( FileSys *f, const char *cwd,
StrArray *list );
IgnoreTable *ignoreTable;
StrArray *ignoreList;
StrBuf dirDepth;
StrBuf foundDepth;
StrArray *ignoreFiles;
StrBuf ignoreStr;
};
# |
Change |
User |
Description |
Committed |
|
#1
|
22562 |
rlranft |
Populate -o //guest/perforce_software/p4/2017-1/...
//guest/rlranft/p4/2017-1/.... |
|
|
//guest/perforce_software/p4/2017-1/support/ignore.h |
#1
|
22288 |
mark_mears |
import 2017.1 code drop |
|
|