🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #3115

Re: [EXT] Re: git context diff does not recognize shell function name

#3115
From: Johannes Sixt
Date: Sat, 14 Nov 2026 08:49
16 lines
7538 bytes
Am 13.11.26 um 08:09 schrieb Windl, Ulrich:
> The file
> name ends in ".sh", and there's also a "she-bang" at the start
> saying it's a BASH script.
Git does not activate diff drivers automatically for any type of file
(AFAIR), so all of these properties are ignored. You have to activate
the diff driver yourself, for example, by putting a line like

*.sh diff=bash

in your .git/info/attributes or a .gitattributes. Without this, the
default hunk header pattern is used, which picks up lines that begin
with a non-punctuation character.

-- Hannes
Technical Details
Message-ID: <080eb4e7-2885-4057-b063-2f114b99b883@kdbg.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-75435-linux-kernel-git=dewy.ru
References: <340dc2eef42f4f6690c58765a07621e1@ukr.de> <xmqqmrrdhiye.fsf@gitster.g> <69690c3bd37448ff8116bf3497f151a9@ukr.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-75435-linux-kernel-git=dewy.ru
From: j6t@kdbg.org (Johannes Sixt)
Newsgroups: linux.kernel.git
Subject: Re: [EXT] Re: git context diff does not recognize shell function name
Date: Sat, 14 Nov 2026 09:49:42 +0100
Organization: Usenet Network
Message-ID: <080eb4e7-2885-4057-b063-2f114b99b883@kdbg.org>
References: <340dc2eef42f4f6690c58765a07621e1@ukr.de>
 <xmqqmrrdhiye.fsf@gitster.g> <69690c3bd37448ff8116bf3497f151a9@ukr.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1534589"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:BQiyxuc+7RQfE6UCJ929Xbf0LtI= sha256:VKfkC1VHxcbzUOy64Oy18pIZUOlpMbCIjzbMmWgMarQ=
	sha1:KqviE9oB5lxql80IMdlgsiCS5YQ= sha256:+LkS2Sap2hN2MJ1FcdnAKC2cWuTvaj7aVlN8dIMKO64=
Content-Language: en-US
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 428C7114774; Sat, 14 Nov 2026 11:50:16 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id MPE5ZTqYbV_i;
	Sat, 14 Nov 2026 11:50:08 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-75435-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=kdbg.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 2E72C11476C; Sat, 14 Nov 2026 11:50:04 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id C72C63EE28; Sat, 14 Nov 2026 08:49:56 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794646194;
	b=JnK8RApi5f4Rjf3aMHmIQvV8+34S59mMBdYZpEYNraSKXfWuSdgMSM2G2huTb9JM2LZY
	 GA4uPqcbWcvJxkSA1jPYW1IXbFSdZkSp6/pppamKYTSwlNUSKuBJlPDyvlCk3+KAv1yAG
	 AjQOubb6ViAEoKQmqfoynA0TitV9sVm7OnbDNgWsbC4JdZMr+wr9471zq55FFAv9O6Smi
	 mB+GBgURffpOEBgaaFWRaYCHUHM07xFpWN7Pow9FUnlRfX5cOA3lCgwcgjhBv3PJ52T3r
	 aUhj7PXV/vl3dHQzY+Ee3yAoIeXhVX1pDxolY3ZoEUA9AslGznYWu2OhhP2WkmSQrig==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794646194;
	h=X-Original-To:Received:DMARC-Filter:Received:Message-ID:Date:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent:
	 Subject:To:Cc:References:Content-Language:From:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=KePsTuCmI1WOXwSE1xmCoMj5B/hRjpmaPaEkBAXRjXY=;
	b=Z8k92pGDomX6K6WkXhJw2JYBWKhcv+XbVeXQcUumiZesJdWhcp5be/8LD5MxE4xntLdG
	 +lbAQcq+f4v/l1gzrMBqSC0ULzQcQrby/+/dX5CvXtg9sVkEkoqYjDTHpLGQMhZ5HvhlY
	 44VGESMpazU0sxfBJTDa0RmWwqMFv92si+zSxCLIVZbyrG3Ze9rVj6iBPTIt27g+f82YO
	 aSOyQxDeRX3uBUBTuvjPxGoCVWyiF4HdecW/JgpyXEkR8z9xkssUWCD+c8AbBCscas3DC
	 F/Fgbt0+ykHbG/9qij2+xN1XWfeaAlEPlUDEQeeC3KGsSCsTGVWgTwV6oIdHmK+OwHg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=none header.from=kdbg.org;
	spf=pass smtp.mailfrom=kdbg.org;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id C6A03606A332;
	Sat, 14 Nov 2026 08:49:54 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.33.87.15
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794646194;
	b=hwy8XTJl7Di2lR8HdJMQKq8poMAEjLaJnGxBro0kxr2JFV04p15DTu7Ky60WmRbXKalX
	 2gUIuZ9iGLpT7o/IUcNabOYMMSHXuRwqGM3ItgjyCRDgRP96y6YQING8x4HRDgxU6tlMd
	 8CNHXtaYtNS0lQ38/mWgI27wp0LDrGuAGJrO9HrqwwrfzBPM0sdZ5vzaW4Q+1YZvXfJPc
	 S1OBNZesRnaTpiKatGqkOo0oRARwZvaibcO9oHwFPQSqel/l69JQ7Hjo5H8Fx0BeISsGv
	 jOYLneQI28+MuqI4k8L/eXgrGRbE90qw9b/cCko/3WHBHqwV0jrBBvxVfv4Z/t5OO5A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794646194;
	h=DMARC-Filter:Received:Message-ID:Date:MIME-Version:User-Agent:
	 Subject:To:Cc:References:Content-Language:From:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=KePsTuCmI1WOXwSE1xmCoMj5B/hRjpmaPaEkBAXRjXY=;
	b=xnUAJzVq6q+PUb7fhOwhmPvEs/Syod1keDXcYtNF7Kc37C14SFtku0TiXTHQg0Gm4AQm
	 /SrQyM/F/7vxsRns+zQVVq1DOITEMBsydbwKZ14dIWFryeF2bpVRLL0TvL0S43swDvJ6F
	 sBtWNK2xok6XNq4kweEm9rQzjMhByEckywzBSHTI2ezvbTlNrKVJT6CEX9i5Laih3A3qH
	 +xE3YIU64m/0k0su0WvncRIZIKb14ucMRwNL0Ds2/6MR/JwWV+7fucNdUvxbI6tBeWETi
	 AC7z43uc1UsELf/4yjsfXJIjq31yzBrrIy+uQmg7MzrYtphq5xvBkElRdtZuG60od1A==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=kdbg.org;
	spf=pass smtp.mailfrom=kdbg.org;
	arc=none smtp.remote-ip=213.33.87.15
X-Received: from bsmtp1.bon.at (bsmtp1.bon.at [213.33.87.15])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67882606A329
	for <git@vger.kernel.org>; Sat, 14 Nov 2026 08:49:53 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 67882606A329
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kdbg.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kdbg.org
X-Received: from [192.168.0.101] (unknown [93.83.142.38])
	by bsmtp1.bon.at (Postfix) with ESMTPSA id 4jRSVb3PLlzRnlL;
	Sat, 14 Nov 2026 09:49:43 +0100 (CET)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-User-Agent: Mozilla Thunderbird
X-Cc: "git@vger.kernel.org" <git@vger.kernel.org>,
 Junio C Hamano <gitster@pobox.com>
X-In-Reply-To: <69690c3bd37448ff8116bf3497f151a9@ukr.de>