Creating a new(-ish) library in modular boost ?
I have fumbled (and stumbled) trying to create a revised-possibly-to-be-proposed for Boost library in the new modular boost format. So far I have created a folder /modular-boost/svg_plot And copied all the files into it in the new modular format and got the library working OK (compiling, tests, examples, docs etc). Then I created my repository by doing I:\modular-boost\libs>git init svg_plot Initialized empty Git repository in I:/modular-boost/libs/svg_plot/.git/ Then I GIT Added various files, and committed these to my repository. (Should I have pushed?) I tried to tell git to ignore some files like log files, etc (but I don't get a .gitignore file when I think I should - the Tortoise GIT window has various options like .gitignore in the repos root, but no 'OK' button, just a close??? I have a .gitignore at /modular-boot/ but it does not contain the files to ignore (and I would not expect it to). I've set the GITHub default storage directory to \modular-boost\libs but a scan for repos only find modular-boost I went to my GITHUB page and followed the invitation to drag the svg_plot repository onto the page. Some files are listed (but ones I want to ignore) and then all options are unresponsive or greyed out and eventually GITHUB hangs and then crashes :-( So both GIT and I are confused ! Can anyone suggest what sequence of actions I should take to set this up? Thanks Paul Paul A. Bristow Prizet Farmhouse Kendal UK LA8 8AB +44 01539 561830 07714330204
On 3/20/2014 1:07 PM, Paul A. Bristow wrote:
I have fumbled (and stumbled) trying to create a revised-possibly-to-be-proposed for Boost library in the new modular boost format.
So far I have created a folder /modular-boost/svg_plot
And copied all the files into it in the new modular format and got the library working OK (compiling, tests, examples, docs etc).
Then I created my repository by doing
I:\modular-boost\libs>git init svg_plot
Initialized empty Git repository in I:/modular-boost/libs/svg_plot/.git/
Then I GIT Added various files, and committed these to my repository. (Should I have pushed?)
I tried to tell git to ignore some files like log files, etc (but I don't get a .gitignore file when I think I should - the Tortoise GIT window has various options like .gitignore in the repos root, but no 'OK' button, just a close??? I have a .gitignore at /modular-boot/ but it does not contain the files to ignore (and I would not expect it to).
I've set the GITHub default storage directory to \modular-boost\libs but a scan for repos only find modular-boost
I went to my GITHUB page and followed the invitation to drag the svg_plot repository onto the page. Some files are listed (but ones I want to ignore) and then all options are unresponsive or greyed out and eventually GITHUB hangs and then crashes :-(
So both GIT and I are confused !
Can anyone suggest what sequence of actions I should take to set this up?
The easiest way I found is to setup a GitHub repository under your GitHub account. Then clone that empty repository to your local modular-boost/libs. Add all your files to the local repository. Commit everything. Then push everything back to your GitHub remote ( origin/master ). Later if you like you can create a local 'develop', merge your local 'master' to 'develop', then push your local 'develop' to 'origin/develop' on GitHub. The you can do the usual changes and testing on 'develop' before you merge your 'develop' changes back to 'master'.
-----Original Message----- From: Boost [mailto:boost-bounces@lists.boost.org] On Behalf Of Edward Diener Sent: 20 March 2014 17:56 To: boost@lists.boost.org Subject: Re: [boost] Creating a new(-ish) library in modular boost ?
I have fumbled (and stumbled) trying to create a revised-possibly-to-be-proposed for Boost library in the new modular boost
On 3/20/2014 1:07 PM, Paul A. Bristow wrote: format.
So far I have created a folder /modular-boost/svg_plot
And copied all the files into it in the new modular format and got the library working OK (compiling, tests, examples, docs etc).
Can anyone suggest what sequence of actions I should take to set this up?
The easiest way I found is to setup a GitHub repository under your GitHub account. Then clone that empty repository to your local modular-boost/libs. Add all your files to the local repository. Commit everything. Then push everything back to your GitHub remote ( origin/master ).
Later if you like you can create a local 'develop', merge your local 'master' to 'develop', then push your local 'develop' to 'origin/develop' on GitHub. The you can do the usual changes and testing on 'develop' before you merge your 'develop' changes back to 'master'.
These suggestions proved successful in my case. I had to move my library files to a backup location (and abandon the existing .git file) before following your procedure above. If I had wanted to keep my full history, it would have been better to start work on the new library with a GitHub repository as you suggest. (Of course, if you are using a free account, all work that you push will be visible, warts and all ;-) (Some GitGuru may be able to suggest how better to do it?). Thanks Paul Paul A. Bristow Prizet Farmhouse Kendal UK LA8 8AB +44 01539 561830 07714330204
participants (2)
-
Edward Diener
-
Paul A. Bristow