I have a feature branch called feature/a
off of develop
that was created a while ago. I have since merged feature/b
and feature/c
to develop
. All of these branches have a common main
file that they alter. I am now wanting to merge the develop
branch into my feature/a
branch to get all of the updated features/files. However, when I do this I lose some lines of code in the merge-conflicted main
file.
For instance, I have the following block in develop/main
but not in feature/b/main
:
component module_a is
generic
(
MODULE_NAME : string
);
port
(
clock : in std_logic;
reset : in std_logic
);
end component module_a;
However, when I go to merge develop
into feature/a
I only get the following line in the merge-conflicted main
file:
component module_b is
...
...
<PORTS HERE>
...
...
<<<<<<< HEAD
end component module_b;
=======
end component module_a;
>>>>>>> develop
This merge-conflicted file drops the whole module declaration except for the end component module_a
line. What could be the cause of this?