]> git.ipfire.org Git - thirdparty/git.git/commitdiff
sha1dc_git.h: re-arrange an ifdef chain for a subsequent change
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 8 Dec 2017 22:29:59 +0000 (22:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Dec 2017 23:01:01 +0000 (15:01 -0800)
A subsequent change will change the semantics of DC_SHA1_SUBMODULE in
a way that would require moving these checks around, so start by
moving them around without any functional changes to reduce the size
of the subsequent patch.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1dc_git.h

index a8c272927842901190b07098911ef785a458bcf3..41e1c3fd3f787e04d6e4fa9eb7c56b617f1c5fa5 100644 (file)
@@ -1,9 +1,9 @@
 /* Plumbing with collition-detecting SHA1 code */
 
-#ifdef DC_SHA1_SUBMODULE
-#include "sha1collisiondetection/lib/sha1.h"
-#elif defined(DC_SHA1_EXTERNAL)
+#ifdef DC_SHA1_EXTERNAL
 #include <sha1dc/sha1.h>
+#elif defined(DC_SHA1_SUBMODULE)
+#include "sha1collisiondetection/lib/sha1.h"
 #else
 #include "sha1dc/sha1.h"
 #endif