Forráskód Böngészése

Add default pyc/__pycache__ ignores in svn_git_sync

cere 1 hónapja
szülő
commit
6999b1e7db
1 módosított fájl, 6 hozzáadás és 0 törlés
  1. 6 0
      svn_interact/svn_git_sync

+ 6 - 0
svn_interact/svn_git_sync

@@ -90,6 +90,12 @@ git config core.fileMode false || true
 git config core.autocrlf true || true
 git config core.safecrlf false || true
 
+# Seed ignores for common noise (pyc/cache)
+if [[ ! -e .gitignore ]]; then
+  echo "[$(elapsed) s] Adding default ignores (.pyc/__pycache__)..."
+  printf "*.pyc\n__pycache__/\n" > .gitignore
+fi
+
 echo "[$(elapsed) s] Staging files..."
 git add -A