IGNORE FILES

# Mercurial Ignore File For PSoC Creator In Glob Syntax

Article by:

## Overview

Following is a Mercurial ignore file for excluding the unnecessary files created by PSoC Creator. The ignore files is written using regex syntax. It only excludes files that are within a specified sub-directory within the repository (commonly called code or something like that). This is to stop the ignore file excluding other files with the same extension from other sections of the repository.

Where possible, the type of file excluded is commented beside each line, just incase you want to re-introduce the file for some reason.

Just copy the code below into the .hgignore file found in the root directory of your repository, replacing <psoc code root dir> with the directory the code will be placed in (or delete this and the / if you want it to apply to the whole repo).

## Ignore File

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22  #************************************************************************* #*************************** PSOC IGNORE FILES *************************** #************************************************************************* /.*?\.cywrk\..*? # User specific .cywrk files (cywrk. extension) /.*?\.cyprj\..*? # User specific .cyprj files (cyprj. extension) /.*?/?codegentemp/.* # Temp compile files /.*?/?autoseltemp/.* # Temp compile files for bootloader project # Ignores most debug stuff except the generated source (that PSoC Creator makes), # and the .hex file used for programming. Keeps all release files (release folder # rather than debug. /.*?/?Debug/.*\.o$# Compiler-generated object files /.*?/?Debug/.*\.P$ # Compiler-generated files /.*?/?Debug/.*\.log$# Compiler-generated log files /.*?/?Debug/.*\.a$ # Compiler-generated files /.*?/?Debug/.*\.deps$# Compiler-generated dependency files /.*?/?Debug/.*\.lst$ /.*?/?Debug/.*\.elf$# Compiled binary /.*?/?Debug/.*\.ihx$ /.*?/?Debug/.*\.map\$ # Map file 

## Authors

### Geoffrey Hunter

Dude making stuff.