Why after merging explicitly with the --no-ff
flag some feature branch onto a clean master (no new commits since branching), I can see the full commit history of the feature branch when checking out master?
The situation could be represented with this ASCII graph:
A-----------E -> master # E is a merge commit
\ /
B---C---D -> feature
If something happens in master and I want to revert it to commit A, a previous stable point in history, I have to somewhat filter commits B, C and D because a simple git log --oneline
shows them (maybe with --not feature
argument?). In a certain sense it's logical because these commits are reachable from the tip of master.
My use case is a pristine master with temporary feature branches as needed, pretty common I guess. How projects usually deal with this continuous integration scenario?