From 213c812a976bd534bc5e7ea507edf9d26c762fd1 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Mon, 13 Oct 2014 21:38:44 +0200 Subject: [PATCH] Don't hard-code git hash size Signed-off-by: Sven Strickroth --- src/TortoiseProc/GitLogCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TortoiseProc/GitLogCache.cpp b/src/TortoiseProc/GitLogCache.cpp index 2dbf05f98..dc33a2722 100644 --- a/src/TortoiseProc/GitLogCache.cpp +++ b/src/TortoiseProc/GitLogCache.cpp @@ -1,6 +1,6 @@ // TortoiseGit - a Windows shell extension for easy version control -// Copyright (C) 2008-2013 - TortoiseGit +// Copyright (C) 2008-2014 - TortoiseGit // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -22,7 +22,7 @@ int static Compare(const void *p1, const void*p2) { - return memcmp(p1,p2,20); + return memcmp(p1, p2, GIT_HASH_SIZE); } CLogCache::CLogCache() -- 2.11.4.GIT