# ===== QVW project — preserve interface via git (-prj/ tracked, binaries ignored) =====
# NOTE: on Windows, git is case-insensitive by default — a bare *.qvw would match
# the folder "4.Apps.QVW" and ignore everything inside it. So ignores are scoped
# to leaf filenames via explicit directory globs.

# QVW/QVF/QVD files — only as files, never folders
**/*.qvw
**/*.qvf
**/*.qvw.bak*
**/*.qvd

# Logs & scratch
*.log
**/*.qvs.log
*.tmp
.DS_Store
Thumbs.db

# Explicit data folders to ignore (no content tracked)
/0.Sources.CSV/**
/1.Init.QVD/**
/3.Intermed.QVD/**
/4.Apps.QVW/backups/**
/4.Apps.QVW/_recovery/**
/10.LOG/**
/10.QQlog/**

# "Version  N of ..." — Qlik native backups next to QVW
4.Apps.QVW/Version */

# Re-include key folders that the case-insensitive QVW pattern accidentally blanketed.
# Order: un-ignore folder, then un-ignore contents.
!/4.Apps.QVW/
!/4.Apps.QVW/*
!/4.Apps.QVW/**/*-prj/
!/4.Apps.QVW/**/*-prj/**
!/1.Init.QVD/
!/3.Intermed.QVD/

# But re-apply binary ignore inside the re-included 4.Apps.QVW
/4.Apps.QVW/*.qvw
/4.Apps.QVW/*.qvf
/4.Apps.QVW/*.qvw.bak*
/4.Apps.QVW/*.qvd
/4.Apps.QVW/backups/
/4.Apps.QVW/_recovery/
