git - Removing files from repository while merging makes them disappear -
here test repo demonstrating problem: https://bitbucket.org/vektor330/bugtest
the sequence of events this:
- add initial commit.
- person adds
conflict,sourcedevelop. - person b adds
conflictmaster. - person b merges
developmaster, resolving conflict onconflictusing "mine" strategy, , removingsourcerepository. empty commit, can commited , pushed remote.
the result is: source has disappeared repository. appeared in 7dfa23e, there log of appearing in repo, , quietly disappeared in 5080a24, without single trace.
i expect commit 5080a24 show "source removed", wrong git or expectation?
why wouldn't show "content of merge commit".
you can visualize content of merge commit selecting merge commit , each of 2 parents in turn.
when select (in sourcetree) 1 develop branch (in addition of merge commit), see files_to_lose/source have been removed:

why commit not show missing file?
because in case of merge commit, there 2 parents compare against. sourcetree doesn't offer diff against 2 parents.
github mac or windows does, when select only merge commit:

in short, isn't git, git gui using.
Comments
Post a Comment