blob: 04021c897d6ab80230823b625805ee25f4d839c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
var Process = require("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", "--long"], true);
meta.describe = git.readLine();
return meta;
}
|