ClientApi::DefineIgnoreFile( const char *, Error * )

Sets P4IGNORE in the Windows registry and applies the setting immediately.

Virtual?

No

 

Class

ClientApi

 

Arguments

const char *c

the new P4IGNORE setting

 

Error *e

an Error object

Returns

void

 

Notes

To make the new P4IGNORE setting apply to the next command executed with Run(), DefineIgnoreFile() sets the value in the registry and then calls SetIgnoreFile().

See also

ClientApi::GetIgnore() ClientApi::GetIgnoreFile() ClientApi::SetIgnoreFile()

Example

The following code illustrates how this method might be used to make a Windows client application start up with a default P4IGNORE setting.

# include "clientapi.h"

int main()
{
    ClientApi client;
    Error e;

    client.Init( &e );
    client.DefineIgnoreFile( ".p4ignore", &e );
}