Skip to content

Commit

Permalink
Adds git helper files (ignore and attributes)
Browse files Browse the repository at this point in the history
 - The .gitignore files tells git what files it can ignore, when
   you do repository status checks etc.
 - The .gitattributes file gives git some hints regarding how
   it should treat certain files.
  • Loading branch information
graemeg committed Feb 27, 2013
1 parent 829a508 commit 4cbf916
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .gitattributes
@@ -0,0 +1,29 @@
# Set default behaviour, in case users don't have core.autorclf set.
* text=auto

# Explicitly set some EOL styles and preferred diff style
*.pas text diff=pascal
*.lpr text diff=pascal
*.pp text diff=pascal
*.inc text diff=pascal
*.txt text
*.xpm text
*.ods diff=odf
*.odt diff=odf
*.odp diff=odf

# declare files that must always have specific EOL style
*.dez text eol=crlf

# True binary files that should not be modify (just for safety sake)
*.jpg binary
*.png binary
*.bmp binary
*.inf binary
*.INF binary
*.zip binary
*.res binary
*.tar.gz binary
*.wav binary
*.pdf binary

6 changes: 6 additions & 0 deletions .gitignore
@@ -0,0 +1,6 @@
*.[oa]
*.ppu
*.dcu
*.lps
*.compiled
*.bak*

0 comments on commit 4cbf916

Please sign in to comment.