Redirecting merge of single file in git -
is possible explicitly tell git during merge file has been renamed or moved?
the background have done refactoring class has been generalized instead of having 1 class called "myclass", have 2 classes "myclassbase" , "myclass". logic in "myclass" has been moved "myclassbase" virtual method has been added "myclass" implements.
"myclassbase" , "myclass" reside in separate files ("myclassbase.cs" , "myclass.cs"), , classes in respective files.
now problem when merge, lot of conflicts in "myclass.cs" there has been changes in class on master. if somehow able tell git changes file "myclass.cs" on master should merged file "myclassbase.cs", merging trivial.
since commit has been done already, can add dummy commit (add empty line or comment line explaining change) explaining commit message tell in details change. correct way such thing next time have change single commit proper explanation.
Comments
Post a Comment