git - revert commits and merges not appearing in HEAD "history" -
after did revert commit followed merge, contributor made several (3) commits , wanted inspect them using git diff head^^^ head
showed chunks sure updated previous commits. using git show
came conclusion revert commit , content of merge not taken account when using either of head[^...][~...]
shortcuts.
here relevant outputs:
$git log -7 3 hours ago 6bcab3e omglolol jun <--this branch master head 4 hours ago 0682cd5 otherfucking editeur de map jun 4 hours ago 83b61da motherfucking editeur de map jun 5 hours ago caf26e1 merge branch 'welcome' nath@home 5 hours ago 5ddbbd0 revert "back menu" nath@home 5 hours ago 2cb664c user can go fkin everywhere nath@home <--made on branch welcome 6 hours ago 06221f9 menu jun $git show head^^ 4 hours ago 83b61da motherfucking editeur de map jun <diff follows...> $git show head^^^ 6 hours ago 06221f9 menu jun <diff follows...> $git --version git version 1.8.1.2 <--packaged linux mint 15
as seems, understanding of head...
shortcuts seems failing here, did not find information on goes further usual bread , butter cases. enlighten me on this
this problem after merged master 'welcome' branch, 'master' branch has 2 parents, namely previous commit in 'master', , latest commit in 'welcome'. saying "give me state of world 3 commits ago" ambiguous, , default git shows last commit in unmerged branch. git head^^^^2 give state of world in second parent of 'master' before merge.
Comments
Post a Comment