SVN - committing data files or not
Posted: Mon Oct 05, 2015 1:01 am
This is for Gabriel or Laura, primarily...
I was hoping to follow-up on your SVN presentation at the conference with a question. When we had the sample programs and data on our flash drives and we were committing them to the blank repository, did we actually commit the data files the first time so that they were in the repository and then set them to ignore afterward so they wouldn't be updated? Or did we not commit them at all? I was thinking that if I wanted to host my repository on a cloud-based host, I don't have permission to put my client's data up there - whether it will be updated later or not. Can I just *ignore* those data files from the very beginning so that they are NEVER up there at all? (Maybe we did it that way, but I got a bit overwhelmed with all of the material and lost my footing a bit by the time I got home.)
I can see that moving to an SVN (I haven't actually done it yet on my desktop), forces you to clean up your act. I have a lot of temporary files that I create in various folders, and I constantly make temporarily copies of things - programs, data, small routines, etc - that I am trying out before I decide which works best. And I also have code snippets (like the FNOPEN sub-routine that you have to use as a wrapper for FNOPENFILE in FileIO. I tend to just keep them sitting in my BR folder, so I can merge them into each program that opens files with that routine. So since the commit routine in SVN will show all of those new files and force you to account for them - either by adding them to your depository or ignoring them, I realize that it really helps to clean up your folders first and perhaps change my sloppier programs so that ALL temp files are created in the same folder for simplicity. Secondly, in Mikhail's talk about MyEdit, I see that I can avoid the issue of the FNOPEN routine by using MyEdit's code completion options to paste that FNOPEN routine into my programs if I use the editor to write my code. Lots of food for thought.
But my primarily question is whether or not I have to commit data files to the SVN that I know I will never wanted updated.
Thanks.
-- Susan
I was hoping to follow-up on your SVN presentation at the conference with a question. When we had the sample programs and data on our flash drives and we were committing them to the blank repository, did we actually commit the data files the first time so that they were in the repository and then set them to ignore afterward so they wouldn't be updated? Or did we not commit them at all? I was thinking that if I wanted to host my repository on a cloud-based host, I don't have permission to put my client's data up there - whether it will be updated later or not. Can I just *ignore* those data files from the very beginning so that they are NEVER up there at all? (Maybe we did it that way, but I got a bit overwhelmed with all of the material and lost my footing a bit by the time I got home.)
I can see that moving to an SVN (I haven't actually done it yet on my desktop), forces you to clean up your act. I have a lot of temporary files that I create in various folders, and I constantly make temporarily copies of things - programs, data, small routines, etc - that I am trying out before I decide which works best. And I also have code snippets (like the FNOPEN sub-routine that you have to use as a wrapper for FNOPENFILE in FileIO. I tend to just keep them sitting in my BR folder, so I can merge them into each program that opens files with that routine. So since the commit routine in SVN will show all of those new files and force you to account for them - either by adding them to your depository or ignoring them, I realize that it really helps to clean up your folders first and perhaps change my sloppier programs so that ALL temp files are created in the same folder for simplicity. Secondly, in Mikhail's talk about MyEdit, I see that I can avoid the issue of the FNOPEN routine by using MyEdit's code completion options to paste that FNOPEN routine into my programs if I use the editor to write my code. Lots of food for thought.
But my primarily question is whether or not I have to commit data files to the SVN that I know I will never wanted updated.
Thanks.
-- Susan