Changes between Version 1 and Version 2 of NewLibFromGit


Ignore:
Timestamp:
Aug 13, 2014, 7:13:30 PM (8 years ago)
Author:
Beman Dawes
Comment:

Start rewrite to reflect boost being past the post-conversion special needs.

Legend:

Unmodified
Added
Removed
Modified
  • NewLibFromGit

    v1 v2  
    22[[PageOutline]]
    33
    4 This page documents the procedure suggested by Daniel James for adding Rene Rivera's Predef library to Boost.
     4Once a new library has been accepted via the formal review process, changes indicated by the review are made, and it time to set up a repository for the library in the [https://github.com/boostorg Boost.org GitHub account].
    55
    6 Thanks to Daniel for supplying this procedure!
     6 Before you start, please review the [https://svn.boost.org/trac/boost/wiki/ModBigPicture Modular Boost Overview]. If your library's repository branch or directory organization is markedly different from Boost's usual conventions, you probably want to reorganize your current repository before transferring it to Boost.org. That is usually easier for you to do in your own account's repository.
    77
    8 == Procedure ==
     8== Transferring a library that already has a !GitHub repository ==
    99
    10 A Boost Release Manager first sets up the {{{predef}}} repository in [https://github.com/boostorg boostorg on GitHub], and ensures that the library maintainer has push and pull access rights to it.
     10The simplest way to move your newly accepted library into Boost.org's !GitHub repository is to [https://help.github.com/articles/how-to-transfer-a-repository have !GitHub transfer your whole repository] including issues list, wiki, and so on.
    1111
    12 {{{git@github.com:grafikrobot/boost-predef.git}}} is the exiting Git public repository used to develop the library.
    13 
    14 {{{
    15 # Create clone containing both repos:
    16 git clone git@github.com:boostorg/predef.git
    17 cd predef
    18 git remote add grafik git@github.com:grafikrobot/boost-predef.git
    19 git fetch grafik
    20 
    21 # Save old branches, so old checkouts of the main module
    22 # will still work:
    23 git tag svn-develop origin/develop
    24 git tag svn-master origin/master
    25 git push --tags
    26 
    27 # Replace master, keeping some files from the old repo:
    28 # (-B overwrite the local branch)
    29 git checkout grafik/master -B master
    30 git checkout svn-master -- .gitattributes index.html
    31 git commit -m "Add files required for boost"
    32 git push --force origin master
    33 
    34 # Replace develop with master as well,
    35 # as grafik/predef doesn't have a develop branch
    36 git checkout -b develop
    37 git push --force origin develop
    38 }}}
    3912
    4013