From patchwork Wed Nov 9 15:44:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 16984 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id B27363238; Wed, 9 Nov 2016 16:44:29 +0100 (CET) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 3F1C73B5 for ; Wed, 9 Nov 2016 16:44:27 +0100 (CET) Received: by mail-wm0-f48.google.com with SMTP id p190so316021610wmp.1 for ; Wed, 09 Nov 2016 07:44:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=eQc8eK3suiN8STwH+QCJDAb/QVpaYvyfDD7SEKo0aoc=; b=MdXQFcwpzIKkSVH1pVB/nhHapYxE5r7ew2J+Fut0sd4LU4E83/5jZqzIb033RsQZFJ ZTcRriISyuMbJeEerIbYAWg5SFvtcyAIjOewfyKE0Cdnh7DWfWjWPZTSCNeuGUV9EW0x iD1DcCBWBjPkD7PP+9MjBtM0tHER5+MypsgyY92hS+O7jMdph2Eejm+MhFZ9X4V/v2FH 9ekLBFL2F3UlWnmGwH6YKfBMjxfS9aG7cAIQQyHfNz7KRFKc4XDwASMQ492Zi2xWUC4J SbvkjefZ10dlZ3yqTrucxwe43/D+sr5Kqkh3lIJ7hOZ5KF1m9dRkxkQGXmxN+RaPsyoO m76w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=eQc8eK3suiN8STwH+QCJDAb/QVpaYvyfDD7SEKo0aoc=; b=MFEeENMHunFsvp/3nkkTU3EuzVJdCAzPZM6wz6GiKjYWMkRpqLoMikyRuEDg5eOJ6I VyHNqSkegJY84yFF/FajCD770eRhfRVVTig3yZT9OvxmlnJC6O9kbACa8y55IxG/z4aw tGN+f/jEDDAAUPk9HYxALEh/p/EdPU7nsX3MWDGyPDogGLKkz0cS6wKLlRquSWQIwlSo d8MLuxOJLGDYeehuJJeDD469kj1Q6/KDDEf8mMJEEg8AmZ/rCex60AayKk/dX7SsGzj6 iN3l+qVlw0Xq1oF9d/etAMT2mMT1tIoK7E3qgv3YHJt2QiLA2zeUNBdJxdt+pOxTXNI6 +bsg== X-Gm-Message-State: ABUngvcSeaprKybmUQdXq04VI16N7I+xIM2Hy4vprLf8HuBdbJtRD7qlAlPjYaa8/L8BdHBp X-Received: by 10.194.104.65 with SMTP id gc1mr203062wjb.164.1478706266567; Wed, 09 Nov 2016 07:44:26 -0800 (PST) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id 129sm7663332wmq.9.2016.11.09.07.44.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Nov 2016 07:44:25 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Wed, 9 Nov 2016 16:44:21 +0100 Message-Id: <1478706261-31261-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 Subject: [dpdk-dev] [PATCH] improve git diff X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Sometimes git does not print the name of the function being changed after @@. It happens especially after a goto label which is not indented. Giving a hint about the languages of files .c, .h and .py will improve hunk headers of "git diff" rendering. Signed-off-by: Thomas Monjalon --- .gitattributes | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fe555f8 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +*.c diff=cpp +*.h diff=cpp +*.py diff=python