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:

  1. add initial commit.
  2. person adds conflict , source develop.
  3. person b adds conflict master.
  4. person b merges develop master, resolving conflict on conflict using "mine" strategy, , removing source repository. 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:

diff

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:

github windows

in short, isn't git, git gui using.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -