From a8a168ec6ccfa3a8ec4243ebf0ccaaf86a13b2a2 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 17 Feb 2017 17:11:33 +0100 Subject: Moved smolbote.qbs --- qbs/GitRepo.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 qbs/GitRepo.js (limited to 'qbs') diff --git a/qbs/GitRepo.js b/qbs/GitRepo.js new file mode 100644 index 0000000..d7e19a7 --- /dev/null +++ b/qbs/GitRepo.js @@ -0,0 +1,15 @@ +var Process = loadExtension("qbs.Process") + +function read(workingDirectory) { + var git = new Process(); + git.setWorkingDirectory(workingDirectory); + + var meta = Object.create(null); + git.exec("git", ["describe", "--abbrev=0", "--tag"], true); + meta.version = git.readLine(); + + git.exec("git", ["describe", "--tag"], true); + meta.describe = git.readLine(); + + return meta; +} -- cgit v1.2.1