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

avoid duplicate patches from git log ?

From
Philip Oakley <philipoakley@iee.org>
Date
May 3, 2016, 20:11 UTC
Message-ID
<712E44CFAD1A41A982AEF1540C1F9F80@PhilipOakley>

I was trying to search the Git for Windows (G4W) history for commits that touched MSVC.

I've used 'git log -SMSVC --pretty='tformat:%h (%s, %ad)' --date=short --reverse' to get a nice list of those commits.

However, as the G4W project (https://github.com/git-for-windows/git/) follows the main git repo and its releases, it needs to rebase it's fixup patches, while retaining their original series, so has repeated copies of those fix patches on the second parent path (a technique Dscho called rebasing merges).

for example:
Show 5 quoted lines
> bf1a7ff (MinGW: disable CRT command line globbing, 2011-01-07)
> a05e9a8 (MinGW: disable CRT command line globbing, 2011-01-07)
> 45cfa35 (MinGW: disable CRT command line globbing, 2011-01-07)
> 1d35390 (MinGW: disable CRT command line globbing, 2011-01-07)
> 022e029 (MinGW: disable CRT command line globbing, 2011-01-07)

How can I filter out all the duplicate patches which are identical other than the commit date?

The --left --right and --cherry don't appear to do what I'd expect/hope. Any suggestions? -- Philip

Next: Jeff King
Message 1 of 7 in “avoid duplicate patches from git log ?”
  1. Philip OakleyMay 3, 2016
  2. Jeff KingMay 3, 2016
  3. Junio C HamanoMay 3, 2016
  4. Philip OakleyMay 3, 2016
  5. Johannes SchindelinMay 4, 2016
  6. Junio C HamanoMay 4, 2016
  7. Johannes SchindelinMay 4, 2016

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.