9 ms·
> Git has no native way to reliably tell you what you actually worked on in a branch. Yes it has git diff but that is not precisely the same I'm not sure exact
by thayne 4y ago
> Git has no native way to reliably tell you what you actually worked on in a branch. Yes it has git diff but that is not precisely the same
I'm not sure exactly what you mean by "what you actually worked on". If you want the files that changed a git diff between the tip of your branch and merge base of the target branch is usually sufficient.
> and git log is A. not easy to consume
You can customize the log format to make it easier to consume
> B. unreliable since git has so many methods to rewrite history.
I'm not sure what that has to do with CI/CD. But if that is somehow a problem for you, then just don't allow rewriting history. Every git server software I'm aware of supports rejecting pushes that rewrite history.