jrychter 14 Posted December 19, 2012 Share Posted December 19, 2012 I'm trying to start keeping my MSP430 code as clean as most of my other projects. Also, I'd like to release some projects on GitHub. But I'm finding it to be quite difficult. Problem is, in a project that uses CCS and Grace, a single main.c explodes into (at a first approximation) 1.54 bazillion files. Some of them are generated on every build, some are not. I'm looking for advice, preferably in the form of a .gitignore file Quote Link to post Share on other sites
bluehash 1,581 Posted December 19, 2012 Share Posted December 19, 2012 I use eGit with CCS. Works great. I add Debug folder to gitignore. I don't use Grace, so my main is clean. Not sure how to handle grace files though. Quote Link to post Share on other sites
jrychter 14 Posted December 21, 2012 Author Share Posted December 21, 2012 So what about lnk_msp430g2412.cmd? Do you version that? Or targetConfigs/MSP430G2412.ccxml? And what about dotfiles? .config directory with everything that's inside, .ccsproject, .project, .settings dir? From what I can see, those get created even if one does not use Grace, and I'm not sure what to do about them. Quote Link to post Share on other sites
bluehash 1,581 Posted December 21, 2012 Share Posted December 21, 2012 So what about lnk_msp430g2412.cmd? Do you version that? Or targetConfigs/MSP430G2412.ccxml? And what about dotfiles? .config directory with everything that's inside, .ccsproject, .project, .settings dir? From what I can see, those get created even if one does not use Grace, and I'm not sure what to do about them. Yes.. version all of them, since I need to use projects across multiple PCs. The .cproject and .project, I version at the end of day. jrychter 1 Quote Link to post Share on other sites
Rickta59 589 Posted December 21, 2012 Share Posted December 21, 2012 Do a project clean then try using the "File/Export..." menu item. Export as an archive file and see what it puts in the zip. You can safely delete the Debug directory or just exclude it using the checkboxes in the export dialog. The files in that list should give you a good idea of what is needed by someone else to be able to build from scratch inside of CCS (eclipse really) -rick bluehash, jrychter and oPossum 3 Quote Link to post Share on other sites
bluehash 1,581 Posted December 21, 2012 Share Posted December 21, 2012 Do a project clean then try using the "File/Export..." menu item. Export as an archive file and see what it puts in the zip. You can safely delete the Debug directory or just exclude it using the checkboxes in the export dialog. The files in that list should give you a good idea of what is needed by someone else to be able able to build from scratch inside of CCS (eclipse really) -rick Neat trick... I'm going to try that. Quote Link to post Share on other sites
jrychter 14 Posted December 21, 2012 Author Share Posted December 21, 2012 Thanks for the great advice! Quote Link to post Share on other sites
username 198 Posted December 25, 2012 Share Posted December 25, 2012 I'm quite the novice to proper coding and using git. My 1/2 a cent if your a windows user is to use tortoisegit which provides a handy windows explorer based GUI. With that you simply add your main.c (and other source files) to your git repo which makes ignoring a billion other un revisioned files quite easy. With this method however you will have to create a new project file and import your source files should you wish to use it on a different computer. Provided your not doing anything fancy in the project file itself (such as writing to specific, non default locations in memory), there isn't really that much info that is lost. Once you get the paths down properly its quite easy to work with. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.