aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/version/snapshot.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-08-13 08:09:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-08-13 08:09:04 +0200
commit61ac67105ef31e1ea31014e50e5b6deb74674594 (patch)
treee45e5be577d82b3c43a4cf94a833d17adb795a9e /libbuild2/version/snapshot.cxx
parentb01aaa16e5adaa0cc064490535f8756b2ef8d421 (diff)
Cache git status results in version module
Diffstat (limited to 'libbuild2/version/snapshot.cxx')
-rw-r--r--libbuild2/version/snapshot.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/version/snapshot.cxx b/libbuild2/version/snapshot.cxx
index 3a885b5..d20e633 100644
--- a/libbuild2/version/snapshot.cxx
+++ b/libbuild2/version/snapshot.cxx
@@ -12,7 +12,7 @@ namespace build2
namespace version
{
snapshot
- extract_snapshot_git (const dir_path&);
+ extract_snapshot_git (dir_path);
static const path git (".git");
@@ -46,7 +46,7 @@ namespace build2
if (butl::entry_exists (d / git,
true /* follow_symlinks */,
true /* ignore_errors */))
- return extract_snapshot_git (d);
+ return extract_snapshot_git (move (d));
}
return snapshot ();