From nobody Mon Nov 17 01:24:55 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1602663737; cv=none; d=zohomail.com; s=zohoarc; b=gjcW6nNaApOd/DFXj29X1NOLckkOvqv3XWwLe89T2dfj85jkeO6e0d0dQ0HaO3Hx0cz6vCBhtsS8LAOARpPz+KUW4ZhM7407EOlugaX8NbMySci8Jkvz/caEoENpM3zP+W9HFFx4BGkmuZo6xz39yidmci9607X7MOWC1Kzq6v4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602663737; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=uuJppHX+C4z8kNnV/PTvBxvxulI+CAK/tNaO7ZCrtiU=; b=g5wthupKnX7tjDwXNptGKze+q/zwzKMM8elszhDYSgYAla5hX2c+K8M84lYGG+E8p9i+KvoNlzj9ckZeptsau9w1M6nFDUBiM4QOEhjshad9mOm8D0Vo71+0k1/NlJ+h565qJTg/bc5ygsCw2O8NyqtOFeLgy/5QrwCTrOiaM8Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1602663736999152.9692332738913; Wed, 14 Oct 2020 01:22:16 -0700 (PDT) Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-159-zx6bUotONLSIl9vWuGfcFQ-1; Wed, 14 Oct 2020 04:22:13 -0400 Received: by mail-wr1-f71.google.com with SMTP id f11so954254wro.15 for ; Wed, 14 Oct 2020 01:22:13 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (106.red-83-59-162.dynamicip.rima-tde.net. [83.59.162.106]) by smtp.gmail.com with ESMTPSA id 30sm3713287wrr.35.2020.10.14.01.22.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 01:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602663736; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uuJppHX+C4z8kNnV/PTvBxvxulI+CAK/tNaO7ZCrtiU=; b=g5Dyk/5TZzpkGpYSp5ycY6Ta86Css7Cg9Br2xaVgzrxMjfdyRyn8SJPVHm/fU8+TvwjnvW gSULO24658iPCzhP3yDzozSXIKdZauLGuqwm28I/koCI5a5ro6Ir2K2c2h7Ygk6QlCUDOc nqcegV78NuZKnS5zryKDudBuS2VatwE= X-MC-Unique: zx6bUotONLSIl9vWuGfcFQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uuJppHX+C4z8kNnV/PTvBxvxulI+CAK/tNaO7ZCrtiU=; b=peUAhDkzX6b1OhphxNJpJ0/zdg240AZQ8951BdP3Tss9cki9JAKkjHkP9EsEZRTgn4 J2ud1WfSwmIhl17FWJ+8hw76zbZmAb48zgcPGvgaz5kPYxIpFJGXSoJUr2qoEHwxwcFI QSxSmdGsphki1DtUBAWQiJo7MZZB1m5eNSlRt0lQ9krMXgAmNwJcT0cE1lrHfX5ELrO0 aH+5DpUInVzF6NvS4zNsNjwsMpUtTJfTKP1mCNvVKh0KGiNakB0MoJ4GkxEsv04ECr4E VEDnkq01lNQR9yV+dTlT+jodWt8rtpyI5U+I+3lC1iA2EQwTdxAIcK5Eyi+/pRj4ef9P +CtQ== X-Gm-Message-State: AOAM532Bt+zg8EhsCdpXY1Dzhca2FL/EDDmwZ1K1TzI1eKto5ixZSbQy K0I0XSg3lZWO3HJ6QSotNMcIf8y3HfsGBdcvQmdxDyP4PxAv2DaKH3c4uRtLk3QdLwMacWXrAcF XxfPYs8LcNJg6QQ== X-Received: by 2002:adf:bbca:: with SMTP id z10mr4329913wrg.403.1602663732774; Wed, 14 Oct 2020 01:22:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxy7c6kVKxNkSYE9n3ECqdxhMH6e5mO3f2Twcvri5oyjB3JBqQHQeKmEDKmsMD5AQ3eJUs7Q== X-Received: by 2002:adf:bbca:: with SMTP id z10mr4329810wrg.403.1602663731576; Wed, 14 Oct 2020 01:22:11 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Paolo Bonzini Cc: qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH] buildsys: Help git-diff adding .gitattributes config file Date: Wed, 14 Oct 2020 10:22:09 +0200 Message-Id: <20201014082209.3712625-1-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Since commits 0979ed017f0 ("meson: rename .inc.h files to .h.inc") and 139c1837db7 ("meson: rename included C source files to .c.inc") 'git-diff --function-context' stopped displaying C function context correctly. We can help git-diff by providing attributes to the .[ch].inc path names. See: https://git-scm.com/docs/gitattributes#_generating_diff_text Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Marc-Andr=C3=A9 Lureau --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000000..3d2fe2ecda8 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +*.c.inc diff=3Dc +*.h.inc diff=3Dc --=20 2.26.2