VCS gitignore, discussion of what files should be added to `.gitignore`

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
ipatch
Posts: 112
Joined: Wed Apr 08, 2020 3:40 pm
Location: dfw
Contact:

VCS gitignore, discussion of what files should be added to `.gitignore`

Post by ipatch »

i've been building several different versions of freecad locally. i have my freecad src directory setup to track several different remotes ie. realthunders fork, a fork designated for mac bundling (work in progress), and the main upstream master branch.

i have the following directory structure

/opt/code/github/public/forks/freecad-git
╰─λ tree -L

.
├── 37.files.txt
├── README.md
├── build.hyairon.app.bundle
├── build.hyarion
├── build.master
├── build.real.thunder
├── build.realthunder -> build.real.thunder
├── build.vej.macbundle
├── fcBldDir -> build.master
├── freecad -> freecad-src
├── freecad-src
├── freecad-src-realthunder
├── freecad.build.master.dir -> build.master
└── freecad.src -> freecad-src

12 directories, 2 files

from time to time i run a cmake cmd from within the main src dir of freecad which will place a `CMakeCache.txt` within the `./freecad` dir, and then when i go to run a different cmake cmd things aren't updated because that file is checked into the `.gitignore` file.

I know the sample .gitignore file for cmake projects has that file listed within the .gitignore but having that file ignored tends to lead to problems of its own.

curious if any has run into this issue as well. basically i have to remove the file from the `freecad` src dir.
Post Reply