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

Add ref names, including branches and tags in robotologyGitStatus script #1530

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

GiulioRomualdi
Copy link
Member

This will update the git log as

git log -1 --format="%cr|%s|%H|%D"

In this command:

  • %cr: Relative date (e.g., "2 days ago").
  • %s: Subject.
  • %H: Commit hash.
  • %D: Ref names, including branches and tags.

For instance we will have

2 days ago|Commit message here|abcdef123456| (HEAD -> main, tag: v1.0, origin/main)

@GiulioRomualdi GiulioRomualdi self-assigned this Nov 17, 2023
Copy link
Member

@traversaro traversaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@traversaro traversaro merged commit b74b5e9 into master Nov 17, 2023
32 checks passed
@traversaro traversaro deleted the GiulioRomualdi-patch-1 branch November 17, 2023 12:08
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

Successfully merging this pull request may close these issues.

2 participants