also sprach Guilhem Bonnefille <guilhem.bonnefille@xxxxxxxxx> [2010.09.14.2244 +0200]: > But as I'm new to this tool, I don't know what's the best way to > import existing branches in topgit. There is tg-import, but it looks like it rewrites the history, which you might not want. This should be trivially possible, and it would be nice if TopGit could help you, but for now you will have to do this manually. The following is an example for the simple case when branch foo depends on master, and you want to convert foo: 1. git checkout foo # the topic branch 2. git update-ref refs/top-bases/foo $(git merge-base master HEAD) 3. echo master > .topdeps 4. git format-patch --stdout -s HEAD^ | sed -e 1d -e '/---/,$d' -e '/^Date:/d' > .topmsg 5. git add .top(deps|msg) 6. git commit -sm'convrting branch to topgit format' 7. tg summary Now: will you write a new tg-import or tg-convert? ;) Cheers, -- martin | http://madduck.net/ | http://two.sentenc.es/ a: no. q: should i include quotations after my reply? spamtraps: madduck.bogus@xxxxxxxxxxx
Attachment:
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)