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

Re: Formatting options are ignored when tracking functions

From
Bagas Sanjaya <bagasdotme@gmail.com>
Date
May 22, 2021, 03:55 UTC
Message-ID
<b3035e1c-79fc-e285-fd0e-fca246ae5190@gmail.com>
In-Reply-To
<EE7D39E6-D826-49E2-AD0E-090A83DFDEC1@gmail.com>
Hi Philippe,
On 22/05/21 08.58, Philippe Blain wrote:
Show 9 quoted lines
> Hi Aidan,
> 
> I believe this is working as advertised: only the first line of the commit message is shown.
> However as mentioned in the doc, the -L option also triggers patch output (-p),
> which you can omit if you explicitely add --no-patch (or shorter, -s).
> 
> Cheers,
> Philippe.
> 

So the complete command for --oneline with -L in order to produce similar output as other cases is `git log -L:<function>:<file> --oneline --no-patch`.

I wonder if we can make --oneline implies --no-patch when -L is given, right?

-- 
An old man doll... just what I always wanted! - Clara
Previous: Philippe BlainNext: Junio C Hamano
Message 2 of 5 in “Re: Formatting options are ignored when tracking functions”
  1. Philippe BlainMay 22, 2021
  2. Bagas SanjayaMay 22, 2021
  3. Junio C HamanoMay 23, 2021
  4. Philippe BlainMay 23, 2021
  5. Felipe ContrerasMay 23, 2021

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.