Using Subversion, how can I cut from one file and paste to another preserving history

前端 未结 4 717
长情又很酷
长情又很酷 2021-02-04 07:20

The situation is that I\'ve spent some time messing around with some experimental code. I now want to move part of that code - about 500 lines - into another file, but I don\'t

4条回答
  •  迷失自我
    2021-02-04 08:02

    Can't you leave the code in its own file (after trimming the parts you don't want to keep) and include this file into your 'real' source file?

    // file foo.cpp:
    ...
    namespace {
    #  include "util_code.inc"
    }
    

    Not really orthodox, but should work...

提交回复
热议问题