aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-20 11:34:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-20 11:34:16 +0200
commit4cc966d1468f6ce59600517e44d4817c0905210f (patch)
tree007d428f91cb66fa323e6726fcdbab7cd7359ae0
parentecffe5ab30a72a9b9e5909926d507213e123b0e1 (diff)
Use 12 instead of 16-characters for abbreviated git commit id
This should help a bit with long paths on Windows.
-rw-r--r--build2/version/snapshot-git.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}