Support for "git describe"
Will it be added?
Thanks!
Hi, apologies for the slow reply. You can run this in the library at the moment using the .raw method eg:
const git = require('simple-git/promise');
const description = await git().raw(['describe', '--tags']);
I've added the v2 milestone, if you can fill out a bit more detail for how you'll be using it, I can have it added to that release.
I'd also love to see support for git describe, in order to run git describe --tags like git.describe('--tags') in order to get any tag(s) which are associated with the current (latest) commit, if there are any.
I'm going to check out .raw as it looks like it will suit my needs for now.
Actually, I was able to list tags associated with the latest commit using:
await git.tag(['--points-at', 'HEAD']
(And HEAD can be replaced with a commit hash.)