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

RE: Formatting options are ignored when tracking functions

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
May 23, 2021, 02:28 UTC
Message-ID
<60a9bdbf37fb7_87b7e208f0@natae.notmuch>
In-Reply-To
<63cf407c-95bd-fdda-88ec-5eca36d24998@gmail.com>
Aidan wrote:
Show 20 quoted lines
> Does not work tracking a function
> ---------------------------
> aidan@AidanLaptop:~/Repos/git$ git log -L:vadvise:advice.c --oneline
> b3b18d1621 advice: revamp advise API
> diff --git a/advice.c b/advice.c
> --- a/advice.c
> +++ b/advice.c
> @@ -99,19 +141,23 @@
> -static void vadvise(const char *advice, va_list params)
> +static void vadvise(const char *advice, int display_instructions,
> +                   const char *key, va_list params)
>   {
>          struct strbuf buf = STRBUF_INIT;
>          const char *cp, *np;
> 
>          strbuf_vaddf(&buf, advice, params);
> 
> ---------------------------
> 
> Is this a bug or am I invoking the command incorrectly?
According to the documentation -L implies --patch, so you need to do:
  git log -L:vadvise:advice.c --oneline --no-patch
I would not expect such behavior so to me that's a bug.
-- 
Felipe Contreras
Previous: Aidan
Message 2 of 2 in “Formatting options are ignored when tracking functions”
  1. AidanMay 21, 2021
  2. 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.