GithubHelp home page GithubHelp logo

Proposal for a .gitignore file about base HOT 2 CLOSED

jderobot avatar jderobot commented on August 24, 2024
Proposal for a .gitignore file

from base.

Comments (2)

hustcalm avatar hustcalm commented on August 24, 2024

@ojgarciab
Great, I'm also thinking about that a .gitignore file should help a lot:-)

Maybe we should also write a good pattern to all the generated files, like:

    src/stable/components/basic_component/basic_component
    src/stable/components/basic_component_qt/basic_component_qt
    src/stable/components/basic_component_qt/gui/moc_gui.cxx
    src/stable/components/basic_component_qt/gui/moc_gui.cxx_parameters
    src/stable/components/basic_server/basic_server
    src/stable/components/basic_server/myInterface.cpp
    src/stable/components/basic_server/myInterface.h
    src/stable/components/cameraserver/cameraserver
    src/stable/components/cameraview/cameraview
    src/stable/components/cameraview_icestorm/cameraview_icestorm
    src/stable/components/colorTuner/colorTuner
    src/stable/components/followBall/followball
    src/stable/components/giraffeClient/giraffeClient
    src/stable/components/giraffeServer/giraffeServer
    src/stable/components/introrob/introrob
    src/stable/components/introrob_qt/gui/moc_gui.cxx
    src/stable/components/introrob_qt/gui/moc_gui.cxx_parameters
    src/stable/components/introrob_qt/gui/moc_stategui.cxx
    src/stable/components/introrob_qt/gui/moc_stategui.cxx_parameters
    src/stable/components/introrob_qt/gui/moc_threadupdategui.cxx
    src/stable/components/introrob_qt/gui/moc_threadupdategui.cxx_parameters
    src/stable/components/introrob_qt/gui/widget/moc_cameraswidget.cxx
    src/stable/components/introrob_qt/gui/widget/moc_cameraswidget.cxx_parameters
    src/stable/components/introrob_qt/gui/widget/moc_controlvw.cxx
    src/stable/components/introrob_qt/gui/widget/moc_controlvw.cxx_parameters
    src/stable/components/introrob_qt/gui/widget/moc_glwidget.cxx
    src/stable/components/introrob_qt/gui/widget/moc_glwidget.cxx_parameters
    src/stable/components/introrob_qt/gui/widget/moc_laserwidget.cxx
    src/stable/components/introrob_qt/gui/widget/moc_laserwidget.cxx_parameters
    src/stable/components/introrob_qt/introrob_qt
    src/stable/components/introrob_qt/moc_depuratewindow.cxx
    src/stable/components/introrob_qt/moc_depuratewindow.cxx_parameters
    src/stable/components/introrob_qt/pioneer/moc_pioneer.cxx
    src/stable/components/introrob_qt/pioneer/moc_pioneer.cxx_parameters
    src/stable/components/introrob_qt/pioneer/moc_pioneeropengl.cxx
    src/stable/components/introrob_qt/pioneer/moc_pioneeropengl.cxx_parameters
    src/stable/components/introrob_qt/qrc_resources.cxx
    src/stable/components/introrob_qt/resources.qrc.depends
    src/stable/components/introrob_qt/robot/moc_actuators.cxx
    src/stable/components/introrob_qt/robot/moc_actuators.cxx_parameters
    src/stable/components/introrob_qt/robot/moc_robot.cxx
    src/stable/components/introrob_qt/robot/moc_robot.cxx_parameters
    src/stable/components/introrob_qt/robot/moc_sensors.cxx
    src/stable/components/introrob_qt/robot/moc_sensors.cxx_parameters
    src/stable/components/introrob_qt/robot/moc_threadupdaterobot.cxx
    src/stable/components/introrob_qt/robot/moc_threadupdaterobot.cxx_parameters
    src/stable/components/namingService/namingService
    src/stable/components/opencvdemo/opencvdemo
    src/stable/components/recorder/recorder
    src/stable/components/remoteConfiguration/remoteConfiguration
    src/stable/components/replayController/replayController
    src/stable/components/replayer/replayer
    src/stable/components/rgbdCalibrator/rgbdCalibrator
    src/stable/components/rgbdManualCalibrator/rgbdManualCalibrator
    src/stable/components/rgbdViewer/rgbdViewer
    src/stable/components/teleoperator/teleoperatorPC
    src/stable/interfaces/python/

Instead of writing every generated file's name to .gitignore, any better idea?

from base.

ojgarciab avatar ojgarciab commented on August 24, 2024

Hi Lihang, thanks for your idea.

I think that proposed pattern covers almost all of those extra generated files:

CMakeCache.txt
CMakeFiles/
*.cmake
*.a
*.so
*.cxx
*.cxx_parameters
lib*.so.*
Makefile

After a clean clone, before cmake and make, there is those files without matching proposed pattern (qt related components are not compiled so cxx files are not generated):

    src/stable/components/basic_component/basic_component
    src/stable/components/basic_server/basic_server
    src/stable/components/basic_server/myInterface.cpp
    src/stable/components/basic_server/myInterface.h
    src/stable/components/cameraserver/cameraserver
    src/stable/components/cameraview/cameraview
    src/stable/components/cameraview_icestorm/cameraview_icestorm
    src/stable/components/colorTuner/colorTuner
    src/stable/components/followBall/followball
    src/stable/components/giraffeClient/giraffeClient
    src/stable/components/introrob/introrob
    src/stable/components/namingService/namingService
    src/stable/components/naoviewer/naooperator
    src/stable/components/opencvdemo/opencvdemo
    src/stable/components/recorder/recorder
    src/stable/components/remoteConfiguration/remoteConfiguration
    src/stable/components/replayController/replayController
    src/stable/components/replayer/replayer
    src/stable/components/rgbdCalibrator/rgbdCalibrator
    src/stable/components/rgbdManualCalibrator/rgbdManualCalibrator
    src/stable/components/rgbdViewer/rgbdViewer
    src/stable/components/teleoperator/teleoperatorPC
    src/stable/components/visualHFSM/visualHFSM
    src/stable/interfaces/cpp/
    src/stable/interfaces/python/

Maybe it's a good idea to ignore executable names, but I think that it is more important ignore interfaces directory (cpp and python) to avoid uploading them for a mistake.

I'll add your contribution (*.cxx and *.cxx_parameters) and interface directories.

Thanks.

from base.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.