If I had to following file on my development branch:
# file.rb
class Code
def methodA
'aA1'
end
def methodB
'bB2'
end
end
but on my master branch I wanted to separate the methods into different files:
# in file.rb
class Code
def methodA
'aA1'
end
end
# in extra.rb
class Code
def methodB
'bB2'
end
end
I could simply create the file on development, then checkout to master, rebase and separate the file manually, but is it possible set things up so that when I make changes to development it would be carried over to the right "part" of the file on master?