diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-08-11 22:25:39 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-08-11 22:25:39 +0300 |
commit | 7a6c15e8ff135fc6b22b09038454d007da9642f4 (patch) | |
tree | f7a4454c2e1cd0c528e92c5b0f9017263d48cba9 /bdep/project-email.cxx | |
parent | 4a9790b9d8262f44bd42bfe9af0860873725b32b (diff) |
Make get-related functions to take minimum supported version as an argument
Diffstat (limited to 'bdep/project-email.cxx')
-rw-r--r-- | bdep/project-email.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bdep/project-email.cxx b/bdep/project-email.cxx index 6216d28..d43f4ff 100644 --- a/bdep/project-email.cxx +++ b/bdep/project-email.cxx @@ -11,6 +11,8 @@ using namespace butl; namespace bdep { + const standard_version git_ver ("2.1.0"); + optional<string> project_email (const dir_path& prj) { @@ -35,7 +37,8 @@ namespace bdep // resolved value can be queried with the GIT_AUTHOR_IDENT logical // variable. // - if (optional<string> l = git_line (prj, + if (optional<string> l = git_line (git_ver, + prj, true /* ignore_error */, "var", "GIT_AUTHOR_IDENT")) { |