git/list[1] front-page[2] threads[3] people[4] search[5] about
 

How do I get a squashed diff for review

From
AUAlexander Usov <a.s.usov@gmail.com>
Date
Nov 4, 2011, 19:15 UTC
Message-ID
<CAH_EFyZ_0JB0-5cw-6VEJkfJhSjbmA=3upByQ3YpmnVSvR+9Pg@mail.gmail.com>
Hi,

I'm wondering if there is an easy way to get a squashed diff of the changes done on the feature branch for review. In the simple cases (where feature branch is linear) there is an absolutely fantastic way to get a patch for review: git diff master...feature

However if the feature branch happened to be long-lived and had mainline merged into it it's not going to work -- the resulting diff would contain changes from the merge. The way we are doing things now is to merge master into it once more and then diff, however this is somewhat cumbersome. Is there easier way to do it?

And while we are on the topic -- is there a tool for git similar to "bzr qdiff"? It's a simple graphical diff viewer with 2 nice features -- it shows complete diff (of multiple files) in a single window and has a checkbox to switch between diff-only & full-text modes. I have seen difftool, but it seems to work on per-file basis, and something like "vi <(git diff ...)" lacks the easy way to switch into full-text mode.

--
Best regards,
  Alexander.
Next: David Aguilar
Message 1 of 5 in “How do I get a squashed diff for review”
  1. Alexander UsovNov 4, 2011
  2. David AguilarNov 5, 2011
  3. Alexander UsovNov 5, 2011
  4. Junio C HamanoNov 5, 2011
  5. Alexander UsovNov 6, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.