From: Felipe Contreras <felipe.contreras@gmail.com>
To: Aidan <aidgal2@gmail.com>, git@vger.kernel.org
Subject: RE: Formatting options are ignored when tracking functions
Date: Sat, 22 May 2021 21:28:15 -0500 [thread overview]
Message-ID: <60a9bdbf37fb7_87b7e208f0@natae.notmuch> (raw)
In-Reply-To: <63cf407c-95bd-fdda-88ec-5eca36d24998@gmail.com>
Aidan wrote:
> 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
next prev parent reply other threads:[~2021-05-23 2:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-21 21:18 Formatting options are ignored when tracking functions Aidan
2021-05-23 2:28 ` Felipe Contreras [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-05-22 1:58 Philippe Blain
2021-05-22 3:55 ` Bagas Sanjaya
2021-05-23 18:11 ` Junio C Hamano
2021-05-23 18:20 ` Philippe Blain
2021-05-23 19:28 ` Felipe Contreras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=60a9bdbf37fb7_87b7e208f0@natae.notmuch \
--to=felipe.contreras@gmail.com \
--cc=aidgal2@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).