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

Re: [PATCH] Add grep.fullName config variable

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Mar 18, 2014, 20:01 UTC
Message-ID
<878us79syc.fsf@igel.home>
In-Reply-To
<mvmy507stf1.fsf@hawking.suse.de>
Andreas Schwab <schwab@linux-m68k.org> writes:
Show 16 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> Andreas Schwab <schwab@linux-m68k.org> writes:
>>
>>> This configuration variable sets the default for the --full-name option.
>>>
>>> Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
>>> ---
>>
>> Would this change break Porcelains (e.g. Emacs modes) and force them
>> to be updated to explicitly pass --no-full-name to unbreak them?
>
> Yes, that would be required.  On the other hand, currently it is
> impossible to cut-n-paste a file name without --full-name, since the
> pager is always started in top-level.  Perhaps it is better to fix the
> latter?

On the third hand, git grep isn't plumbing, so variation of output is to be expected? We already have grep.lineNumber and grep.patternType / grep.extendedRegexp (vc-git-grep uses -n itself, but does not protect against grep.patternType).

Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Previous: Junio C Hamano
Message 7 of 7 in “Add grep.fullName config variable”
  1. Add grep.fullName config variableAndreas Schwab, Mar 17, 2014
  2. Junio C HamanoMar 17, 2014
  3. Andreas SchwabMar 18, 2014
  4. Junio C HamanoMar 18, 2014
  5. Andreas SchwabMar 18, 2014
  6. Junio C HamanoMar 18, 2014
  7. Andreas SchwabMar 18, 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.