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

git rev-list --tags --max-count=1 fails #14

Closed
natew opened this issue Jan 7, 2016 · 7 comments
Closed

git rev-list --tags --max-count=1 fails #14

natew opened this issue Jan 7, 2016 · 7 comments

Comments

@natew
Copy link

natew commented Jan 7, 2016

It wants me to put master after rev-list in order to function.

@natew
Copy link
Author

natew commented Jan 7, 2016

Tried with git versions 2.6 and 2.7:

git rev-list --tags --max-count=1

usage: git rev-list [OPTION] <commit-id>... [ -- paths... ]
  limiting output:
    --max-count=<n>
    --max-age=<epoch>
    --min-age=<epoch>
    --sparse
    --no-merges
    --min-parents=<n>
    --no-min-parents
    --max-parents=<n>
    --no-max-parents
    --remove-empty
    --all
    --branches
    --tags
    --remotes
    --stdin
    --quiet
  ordering output:
    --topo-order
    --date-order
    --reverse
  formatting output:
    --parents
    --children
    --objects | --objects-edge
    --unpacked
    --header | --pretty
    --abbrev=<n> | --no-abbrev
    --abbrev-commit
    --left-right
    --count
  special purpose:
    --bisect
    --bisect-vars
    --bisect-all

@GabeMedrash
Copy link

I'm having this same issue.

@hzoo
Copy link
Contributor

hzoo commented Jan 17, 2016

Seems to work for me? git 2.6.3 on osx

screen shot 2016-01-16 at 10 54 44 pm

@jamiebuilds
Copy link
Contributor

It fails if the repo does not have any existing tags

➜  lerna-test git:(master) git rev-list --tags
usage: git rev-list [OPTION] <commit-id>... [ -- paths... ]
  limiting output:
    --max-count=<n>
    --max-age=<epoch>
    --min-age=<epoch>
    ...
➜  lerna-test git:(master) git tag foo
➜  lerna-test git:(master) git rev-list --tags
9cc664aed644dfad93847d2a43e4a737e3107151

@sebmck
Copy link
Contributor

sebmck commented Jan 22, 2016

Anyone wanna submit a patch?

@jamiebuilds
Copy link
Contributor

Done #19

@lock
Copy link

lock bot commented Dec 28, 2018

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants