From 4cc966d1468f6ce59600517e44d4817c0905210f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 20 Mar 2018 11:34:16 +0200 Subject: Use 12 instead of 16-characters for abbreviated git commit id This should help a bit with long paths on Windows. --- build2/version/snapshot-git.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build2/version/snapshot-git.cxx b/build2/version/snapshot-git.cxx index 9dd50c5..b85b47e 100644 --- a/build2/version/snapshot-git.cxx +++ b/build2/version/snapshot-git.cxx @@ -137,7 +137,7 @@ namespace build2 cs.append ("commit " + to_string (data.size ())); // Includes '\0'. cs.append (data.c_str (), data.size ()); - r.id.assign (cs.string (), 16); // 16-characters abbreviated commit id. + r.id.assign (cs.string (), 12); // 12-characters abbreviated commit id. return r; } -- cgit v1.1