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

Re: Is the a way to get a log with files that were changed

From
Jeff King <peff@peff.net>
Date
Sep 12, 2014, 02:26 UTC
Message-ID
<20140912022600.GA15519@peff.net>
In-Reply-To
<FD6D2EE2-AD97-4D40-B461-435FD18D7E1A@gmail.com>
On Fri, Sep 12, 2014 at 07:16:26AM +0530, Stephen Smith wrote:
> Is there a way to get a log of first parent  commits and with each
> commit a entry a list of the files that were changed?
How about:
  git log --first-parent -m --name-only

The "--first-parent" restricts the traversal. The "-m" tells git to show merge diffs against their parents. We show only the diff against the first parent due to "--first-parent", so we effectively show the diff of what was brought in by the merge. And then "--name-only" can be replaced with "--raw", "-p", or whatever diff format you prefer.

-Peff
Previous: Stephen Smith
Message 2 of 2 in “Is the a way to get a log with files that were changed”
  1. Stephen SmithSep 12, 2014
  2. Jeff KingSep 12, 2014

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.