/*
* 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
|
19992 |
devkix |
"Forking branch 2016-1 of perforce_software-p4 to devkix-p4." |
|
|
//guest/perforce_software/p4/2016-1/support/ignore.h |
#1
|
19472 |
Liz Lam |
Initial add of the 2016.1 p4/p4api source code. |
|
|