git-extras icon indicating copy to clipboard operation
git-extras copied to clipboard

git-changelog does not work with no previous tags

Open limianwang opened this issue 9 years ago • 2 comments

An error occurs when attempting to generate a changelog from no previous tags:

$ git changelog
fatal: ambiguous argument 'HEAD -> master..': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

This issue does not occur when previous tags exist.

In essence, it's #176.

limianwang avatar Oct 19 '15 05:10 limianwang

Perhaps if there are no tags, it could say something like "create a tag first". Thoughts, @hemanth?

qw3rtman avatar Oct 19 '15 07:10 qw3rtman

Yes, we need to check if tags are present and show appropriate message.

hemanth avatar Oct 19 '15 07:10 hemanth