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

Re: [PATCH] custom log formats for "diff --submodule=log"

From
Jeff King <peff@peff.net>
Date
Nov 12, 2012, 22:19 UTC
Message-ID
<20121112221901.GD10531@sigill.intra.peff.net>
In-Reply-To
<CALkWK0nT8RXXUUkLuS8zWVMG=wsm0b740q-qYb3iN3cO7Tb=0A@mail.gmail.com>
On Sun, Nov 11, 2012 at 06:35:16PM +0530, Ramkumar Ramachandra wrote:
Show 7 quoted lines
> Ramkumar Ramachandra wrote:
> > Don't you mean `git diff` in place of `git log -p`
> > though?  I don't think `git log --submodule` does anything differently
> > from `git log`.
> 
> Sorry for the nonsense.  I just realized that it affects the diffs
> shown by `git log -p`.

Right. I don't know if that is a common workflow (I do not really use submodules), but it was the first thing I tried when I heard about --submodule (and it does make sense to me that it would work).

But the logic could apply equally well to:
  git diff --submodule=log:%an
-Peff
Previous: Ramkumar Ramachandra
Message 4 of 4 in “custom log formats for "diff --submodule=log"”
  1. custom log formats for "diff --submodule=log"Jeff King, Nov 8, 2012
  2. Ramkumar RamachandraNov 11, 2012
  3. Ramkumar RamachandraNov 11, 2012
  4. Jeff KingNov 12, 2012

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.