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

Re: Enhancing --show-function and --function-context in default configurations

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 2, 2021, 02:21 UTC
Message-ID
<xmqqzgu0y4an.fsf@gitster.g>
In-Reply-To
<CAM1Tk15N6uK3aU5bY6mWQVX5UdEOraysrRmO+v4TA+P-Wa9_hQ@mail.gmail.com>
heapcrash heapcrash <heapcrash@gmail.com> writes:
> gauge whether these changes would be accepted or not.  As far as I can
> tell, these would not change the default behavior of plain git
> {grep,log,diff} unless the --show-function or --function-context flags
> are specified
Two other places may be diff hunk headers and --diff-words output, I think.
> Should I work on a patch that does this?

That depends. If you are going to introduce a mechanism to introduce hardcoded configurations, depending on how it is done, it will become a huge security headache.

Previous: heapcrash heapcrashNext: Ævar Arnfjörð Bjarmason
Message 2 of 7 in “Enhancing --show-function and --function-context in default configurations”
  1. heapcrash heapcrashAug 1, 2021
  2. Junio C HamanoAug 2, 2021
  3. Ævar Arnfjörð BjarmasonAug 2, 2021
  4. Jeff KingAug 2, 2021
  5. Junio C HamanoAug 2, 2021
  6. heapcrash heapcrashAug 3, 2021
  7. Jeff KingAug 3, 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.