When a package, e.g., Examples
, is deleted in OpenModelica, the underlying directory is not removed. Instead, directory Examples
contains a file named package.bak-mo
to indicate that the directory is not used any more. So a backup is kept. If a file package.bak-mo
exists in a folder, this folder plus its files shall be excluded from the git commit process.
├── Sub1
│ └── package.mo
│ └── package.order
│ └── Examples
│ └── package.bak-mo
│ └── otherfile.mo
│ └── package.order
├── Sub2
│ └── package.mo
│ └── package.order
│ └── Demo
│ └── otherfile.mo
│ └── package.mo
│ └── package.order
In this example the following directory plus files shall be excluded from git commit:
│ └── Examples
│ └── package.bak-mo
│ └── otherfile.mo
│ └── package.order
All other files and directories shall still be included in a possible git commit.
Note: This issue is triggered by https://trac.openmodelica.org/OpenModelica/ticket/4854
I could not figure out how to make this working. Any ideas here?