aboutsummaryrefslogtreecommitdiff
path: root/tools/qbs/GitRepo.js
blob: f3431f92ca27db13ad8e543ddda7f1de15c92955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var Process = require("qbs.Process")

function read(workingDirectory) {
    var git = new Process();
    git.setWorkingDirectory(workingDirectory);

    var meta = Object.create(null);
    git.exec("git", ["describe", "--long"], true);
    meta.version = git.readLine();

    return meta;
}