Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use output of custom commands in other custom commands #23

Open
jack-kerouac opened this issue Nov 6, 2014 · 0 comments
Open

use output of custom commands in other custom commands #23

jack-kerouac opened this issue Nov 6, 2014 · 0 comments

Comments

@jack-kerouac
Copy link

I want to list the first line of all commits since the last tag starting with release-. On the command line, the command would be:
git log --oneline $(git describe --tags --match="release-*" --abbrev=0)..HEAD

How can this be achieved with gitinfo?

gitinfo: {
    commands: {
        'release.last.tag': ['describe', '--tags', '--match=release-*', '--abbrev=0'],
        'log.since.last.release': ['log', '--oneline', '<%= grunt.config.get("gitinfo.release.last.tag") %>..HEAD']
    }
}

I tried something like that, but since gitinfo performs custom commands asynchronously, I does not work.

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant