Why Nostr? What is Njump?
2023-06-07 15:07:18
in reply to

Andy Parkins [ARCHIVE] on Nostr: šŸ“… Original date posted:2013-10-04 šŸ“ Original message:On Friday 04 October 2013 ...

šŸ“… Original date posted:2013-10-04
šŸ“ Original message:On Friday 04 October 2013 12:30:07 Mike Hearn wrote:
> Git makes it easy to fork peoples work off and create long series of
> commits that achieve some useful goal. That's great for many things.
> Unfortunately, code review is not one of those things.
>
> I'd like to make a small request - when submitting large, complex pieces of
> work for review, please either submit it as one giant squashed change, or

Don't do this. It throws away all of the good stuff that git lets you record.
There is more to a git branch than just the overall difference. Every single
log message and diff is individually valuable. It's easy to make a squashed
diff from many little commits; it's impossible to go the other way.

Command line for you so you don't have to think about it:

git diff $(git merge-base master feature-branch) feature-branch

git-merge-base finds the common ancestor between master and feature-branch,
and then compares feature-branch against that.


Andy

--
Dr Andy Parkins
andyparkins at gmail.com
Author Public Key
npub1nxlvf9mj3jzgue25n5d9y47s3h5hvg0ded9hwpejdxj9mtrs34vs97wjrv