Git makes a merge commit but as a normal (non-merge) commit -
make merge commit no conflicts, ctrl-c in git bash, , commit. git makes normal (non-merge) commit merge commit message. looks bug me.
update: have git_merge_autoedit=yes (other no) in .bashrc external editor configured.
this confusing later on repo topology show branch not merged in , there not easy way find out when merge made.
git should still stay in merging state. not happen in case of conflicts (at least i'm not able repro), (master|merging) prompt till resolve conflicts , commit, correctly goes merge commit.
update:
this bug affects distributions have external editor (core.editor) configured. fix on pu branch of git repo michael j gruber.
see commit 9d89b3552 ("merge: save merge state earlier", 2017-08-23)
merge: save merge state earlier if
git mergeprocess killed while waiting editor finish, merge state lost prepared merge msg , tree kept. so, subsequentgit commitcreates squashed merge when user asked proper merge commit originally.
Comments
Post a Comment