Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add files to .gitignore (dirty state when GUT is used as a submodule) #678

Open
abstractionfactory opened this issue Dec 31, 2024 · 0 comments

Comments

@abstractionfactory
Copy link

When using GUT as a submodule, there are extra left-over files after opening the parent project in Godot. This could be fixed by adding the following to .gitignore or by adding the files to the repository:

*.import
*.uid
Full output of git status
HEAD detached at v9.3.0
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   addons/gut/fonts/AnonymousPro-Bold.ttf.import
        modified:   addons/gut/fonts/AnonymousPro-BoldItalic.ttf.import
        modified:   addons/gut/fonts/AnonymousPro-Italic.ttf.import
        modified:   addons/gut/fonts/AnonymousPro-Regular.ttf.import
        modified:   addons/gut/fonts/CourierPrime-Bold.ttf.import
        modified:   addons/gut/fonts/CourierPrime-BoldItalic.ttf.import
        modified:   addons/gut/fonts/CourierPrime-Italic.ttf.import
        modified:   addons/gut/fonts/CourierPrime-Regular.ttf.import
        modified:   addons/gut/fonts/LobsterTwo-Bold.ttf.import
        modified:   addons/gut/fonts/LobsterTwo-BoldItalic.ttf.import
        modified:   addons/gut/fonts/LobsterTwo-Italic.ttf.import
        modified:   addons/gut/fonts/LobsterTwo-Regular.ttf.import

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        addons/gut/GutScene.gd.uid
        addons/gut/UserFileViewer.gd.uid
        addons/gut/autofree.gd.uid
        addons/gut/awaiter.gd.uid
        addons/gut/cli/gut_cli.gd.uid
        addons/gut/cli/optparse.gd.uid
        addons/gut/collected_script.gd.uid
        addons/gut/collected_test.gd.uid
        addons/gut/comparator.gd.uid
        addons/gut/compare_result.gd.uid
        addons/gut/diff_formatter.gd.uid
        addons/gut/diff_tool.gd.uid
        addons/gut/double_tools.gd.uid
        addons/gut/doubler.gd.uid
        addons/gut/dynamic_gdscript.gd.uid
        addons/gut/gui/BottomPanelShortcuts.gd.uid
        addons/gut/gui/GutBottomPanel.gd.uid
        addons/gut/gui/GutControl.gd.uid
        addons/gut/gui/GutRunner.gd.uid
        addons/gut/gui/OutputText.gd.uid
        addons/gut/gui/ResizeHandle.gd.uid
        addons/gut/gui/ResultsTree.gd.uid
        addons/gut/gui/RunAtCursor.gd.uid
        addons/gut/gui/RunResults.gd.uid
        addons/gut/gui/ShortcutButton.gd.uid
        addons/gut/gui/editor_globals.gd.uid
        addons/gut/gui/gut_config_gui.gd.uid
        addons/gut/gui/gut_gui.gd.uid
        addons/gut/gui/gut_user_preferences.gd.uid
        addons/gut/gui/panel_controls.gd.uid
        addons/gut/gui/script_text_editor_controls.gd.uid
        addons/gut/gut.gd.uid
        addons/gut/gut_cmdln.gd.uid
        addons/gut/gut_config.gd.uid
        addons/gut/gut_plugin.gd.uid
        addons/gut/gut_to_move.gd.uid
        addons/gut/gut_vscode_debugger.gd.uid
        addons/gut/hook_script.gd.uid
        addons/gut/inner_class_registry.gd.uid
        addons/gut/input_factory.gd.uid
        addons/gut/input_sender.gd.uid
        addons/gut/junit_xml_export.gd.uid
        addons/gut/lazy_loader.gd.uid
        addons/gut/logger.gd.uid
        addons/gut/method_maker.gd.uid
        addons/gut/one_to_many.gd.uid
        addons/gut/orphan_counter.gd.uid
        addons/gut/parameter_factory.gd.uid
        addons/gut/parameter_handler.gd.uid
        addons/gut/printers.gd.uid
        addons/gut/result_exporter.gd.uid
        addons/gut/script_parser.gd.uid
        addons/gut/signal_watcher.gd.uid
        addons/gut/spy.gd.uid
        addons/gut/strutils.gd.uid
        addons/gut/stub_params.gd.uid
        addons/gut/stubber.gd.uid
        addons/gut/summary.gd.uid
        addons/gut/test.gd.uid
        addons/gut/test_collector.gd.uid
        addons/gut/thing_counter.gd.uid
        addons/gut/utils.gd.uid
        addons/gut/version_conversion.gd.uid
        addons/gut/version_numbers.gd.uid
        addons/gut/warnings_manager.gd.uid

Project structure

I'm using submodules as an easier way to manage dependencies and to work around the rather long review times of the Godot asset library. My directory layout is as follows:

├── 📂 addons
│   └── 📂 myaddon
│   └── 🔗 gut → ../vendor/gut/addons/gut (symlink)
└── 📂 vendor
    ├── 📄 .gdignore
    └── 📂 gut (submodule)
        └── 📂 addons
            └── 📂 gut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant