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

Support shortening of revision with digest #3587

Merged
merged 1 commit into from
Feb 15, 2023
Merged

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Feb 13, 2023

No description provided.

@darkowlzz
Copy link
Contributor

Should messages like this

✔ fetched revision: 6.0.0/627d5c4bb67b77185f37e31d734b085019ff2951
also be shortened?

@hiddeco
Copy link
Member Author

hiddeco commented Feb 15, 2023

Not required as it isn't part of column based output where width is a luxury. Also think that a full reference is better there in general, as it is more precise.

Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @hiddeco 🏅

Copy link
Contributor

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

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

LGTM!

The `\b` in the regular expression ensures we only match with a
hexadecimal notation as awhole, while still allowing to match with
e.g. `sha1:...` which would not have been possible by using `\W`
as this includes `_`.

Signed-off-by: Hidde Beydals <hello@hidde.co>
@hiddeco hiddeco merged commit 4a871cd into main Feb 15, 2023
@hiddeco hiddeco deleted the digest-revision-fmt branch February 15, 2023 15:03
@hiddeco hiddeco added enhancement New feature or request area/UX labels Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants