From patchwork Fri Jun 5 13:00:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Derrick Stolee via GitGitGadget X-Patchwork-Id: 11589601 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 079691392 for ; Fri, 5 Jun 2020 13:00:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E00FC206DB for ; Fri, 5 Jun 2020 13:00:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RbF1w18x" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726895AbgFENAo (ORCPT ); Fri, 5 Jun 2020 09:00:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726409AbgFENAk (ORCPT ); Fri, 5 Jun 2020 09:00:40 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAC3DC08C5C2 for ; Fri, 5 Jun 2020 06:00:39 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id y17so9647281wrn.11 for ; Fri, 05 Jun 2020 06:00:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:in-reply-to:references:from:date:subject:mime-version :content-transfer-encoding:fcc:to:cc; bh=+LZ3igzlZfkARBprDlGrVj7POrjOs/Cwtz+2xfBC8Jw=; b=RbF1w18xMUaayttKbdZMk76JKQzHeTcsrNiwYzrvmqz+cCjO5T9Aydqd7MsVsOSI4t aOisJrkubDAO5VAVAOnplzNf/tdq8BEP4MVL2z+iWaog+lrQaiKMNsdn/tZBB0rjfNSE EYRdmIkmzHVWl1NdVi0iBxDI6ubR/2zNU9Q9nEZyoZ/zBmNUFamUE/gFYW4I28g1OlQh hGvdx+jIk74MJ21D6v8wpHQqOsxUAVltxcX2/yjNzS4v/bAIjQ6Ioxo317Rbu8XpZH0A 8BFIemoBe03dYgO9t+pPjhvVLLkVcstLRtkhQHuJ50yD2AjKm+SvFOyfBfEq9WEJCXt+ UOrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:in-reply-to:references:from:date :subject:mime-version:content-transfer-encoding:fcc:to:cc; bh=+LZ3igzlZfkARBprDlGrVj7POrjOs/Cwtz+2xfBC8Jw=; b=oI4gxHfsVJCPhETxASedK8FOAZWiBtg1C2gPsRRHMm7fvBEhLirykpzzSCf6oOrsGC Z8jGTcC+RzUrGrg/DWUtP7HWfUC3btczZTougGAf8PoLkVQtJ2BKOdoCk8QPAaTRz3H4 xt+gvCQRqpIt0L+/n4Z0PmU9Ul06CxJl/DNyBke193i9YItuwx1GAdAiTbgPdD8eZhM0 Qeorlwsbt+HpKIqNMnEloFvY5urJDV9489WdDctw4mqVmLwRoMTZCGpY4PF4X5BseL13 T2rve3I5gcTP0B+3joyEzytEJcZTx7k5z2z5Frngh2XgYKuQWZO/EgeOvYambkZXmwTg ZOTw== X-Gm-Message-State: AOAM532fZOM8d5+oedBk8mBucz0Bvc2vdKDWG7rlL/NC3GGS8V/53F7E c5018GjSnXeFEfr6pLcK55cquks0 X-Google-Smtp-Source: ABdhPJxRfZeiMetZj3wCHaayqtZAgqjg9sNIXz34l+dBVenhZYU+DOHOXfQuAzbfsKS3m4VuLnYvsg== X-Received: by 2002:adf:de84:: with SMTP id w4mr9702726wrl.54.1591362038349; Fri, 05 Jun 2020 06:00:38 -0700 (PDT) Received: from [127.0.0.1] ([13.74.141.28]) by smtp.gmail.com with ESMTPSA id 5sm16392274wrr.5.2020.06.05.06.00.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jun 2020 06:00:37 -0700 (PDT) Message-Id: In-Reply-To: References: From: " =?utf-8?q?SZEDER_G=C3=A1bor?= via GitGitGadget" Date: Fri, 05 Jun 2020 13:00:25 +0000 Subject: [PATCH 03/10] commit-graph-format.txt: all multi-byte numbers are in network byte order MIME-Version: 1.0 Fcc: Sent To: git@vger.kernel.org Cc: me@ttaylorr.com, szeder.dev@gmail.com, jnareb@gmail.com, peff@peff.net, garimasigit@gmail.com, Derrick Stolee , =?utf-8?q?SZ?= =?utf-8?q?EDER_G=C3=A1bor?= Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org From: =?UTF-8?q?SZEDER=20G=C3=A1bor?= The commit-graph format specifies that "All 4-byte numbers are in network order", but the commit-graph contains 8-byte integers as well (file offsets in the Chunk Lookup table), and their byte order is unspecified. Clarify that all multi-byte integers are in network byte order. Signed-off-by: SZEDER Gábor Signed-off-by: Derrick Stolee --- Documentation/technical/commit-graph-format.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/technical/commit-graph-format.txt b/Documentation/technical/commit-graph-format.txt index 1beef171822..440541045d4 100644 --- a/Documentation/technical/commit-graph-format.txt +++ b/Documentation/technical/commit-graph-format.txt @@ -32,7 +32,7 @@ the body into "chunks" and provide a binary lookup table at the beginning of the body. The header includes certain values, such as number of chunks and hash type. -All 4-byte numbers are in network order. +All multi-byte numbers are in network byte order. HEADER: