git-mv-changes
git-mv-changes copied to clipboard
An add-on to move specific changes of code
Just in case if you have some time to kill, or for reminder purposes in case I myself have anytime to kill, We can develop some thing like source range objects which can do the job of moving a specific regions of code from a file to the other commit. I don't think it would be difficult to create conflict markers inside the file in case we land into one.
Other features might include the ability to add more than one file, support for globs or wildcards, and more than one regions in a file or set of files.
Open source to the rescue over here, these can be reused: https://github.com/coala/coala/blob/master/coalib/results/SourceRange.py https://github.com/coala/coala/blob/master/coalib/results/SourcePosition.py https://github.com/coala/coala/blob/master/coalib/results/TextRange.py https://github.com/coala/coala/blob/master/coalib/results/TextPosition.py