From 0845455a5edc8e82ac87740638edc86b602202f7 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Fri, 11 Jan 2013 10:59:15 +0100 Subject: [PATCH] Sort refs in hash map libgit seemed also to order the refs. Signed-off-by: Sven Strickroth --- src/Git/Git.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Git/Git.cpp b/src/Git/Git.cpp index 935e1e9b5..adcf86289 100644 --- a/src/Git/Git.cpp +++ b/src/Git/Git.cpp @@ -1555,6 +1555,11 @@ int CGit::GetMapHashToFriendName(MAP_HASH_NAME &map) git_repository_free(repo); + for (auto it = map.begin(); it != map.end(); ++it) + { + std::sort(it->second.begin(), it->second.end()); + } + return 0; } else -- 2.11.4.GIT