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

perceval tool for default branch #859

Closed
emmanuelajit opened this issue Mar 19, 2025 · 2 comments
Closed

perceval tool for default branch #859

emmanuelajit opened this issue Mar 19, 2025 · 2 comments

Comments

@emmanuelajit
Copy link

emmanuelajit commented Mar 19, 2025

Tool perceval is wonderful getting commit details from a given repo in json format.
Issue faced: I want commits for default Branch

  • Default branch varies from repo to repo
  • Some repo default branch is "master" and some is "main"
  • I try this command but not able to get if default is changed
perceval git $url --branches master --from-date $sdate --to-date $edate --output json -o $json_file

Can you Help me in this please?

@sduenas
Copy link
Member

sduenas commented Mar 19, 2025

The default branch is not a git concept. After you clone a repository - and if you don't tell it another thing - git checkouts to whatever is pointed by the ref HEAD on the remote repository.

You can know what this branch is running git remote show origin.

@emmanuelajit emmanuelajit changed the title perceval tool to Get commits for default branch perceval tool to for default branch Mar 20, 2025
@emmanuelajit emmanuelajit changed the title perceval tool to for default branch perceval tool for default branch Mar 20, 2025
@emmanuelajit
Copy link
Author

emmanuelajit commented Mar 20, 2025

Thank you for Explaining

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

No branches or pull requests

2 participants