* git context diff does not recognize shell function name
@ 2026-11-12 13:39 Windl, Ulrich
0 siblings, 0 replies; only message in thread
From: Windl, Ulrich @ 2026-11-12 13:39 UTC (permalink / raw)
To: git@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 858 bytes --]
Hi!
In git 2.51.0 I found a minor issue:
"git diff" did not show the corresponding shell function name. Admittedly I used a somewhat uncommon line-breaking:
The context in question looks like this:
---
...
run_query()
{
local p_l_0="$1" LOG_BASE="$2" SUFFIX="$3" URL_BASE="$4" URL="$5" \
_COUNT="${6:-$COUNT}" RESPONSE_CHECKER="$7"
local me="${FUNCNAME[0]}" m
...
---
The context diff looked like this:
---
...
@@ -193,6 +188,36 @@ get_params()
...
run_query()
{
@@ -201,10 +226,9 @@ _COUNT="${6:-$COUNT}" RESPONSE_CHECKER="$7"
local me="${FUNCNAME[0]}" m
...
---
("..." is deleted lines)
So this may be a combination of unfortunate context sequencing and the first line of the new context being unusual.
The second chunk would still be the same context, namely "run_query()".
Kind regards,
Ulrich Windl
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5581 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-12 13:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12 13:39 git context diff does not recognize shell function name Windl, Ulrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox