Skip to content

Conversation

@crazy-max
Copy link
Member

needed by docker/buildx#3459


// FragmentFormat returns a simplified git URL in fragment format with only ref.
// If the URL cannot be parsed, the original string is returned with false.
func FragmentFormat(remote string) (string, bool) {
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be in the dfgitutil pkg. Maybe unit test as well.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the git-fragment-format-func branch from e894482 to 0888dc4 Compare October 11, 2025 10:47
@crazy-max crazy-max changed the title gitutil: FragmentFormat func dfgitutil: FragmentFormat func Oct 11, 2025
@crazy-max crazy-max requested a review from tonistiigi October 11, 2025 10:48
@tonistiigi tonistiigi merged commit 9b6f60a into moby:master Oct 11, 2025
139 checks passed
@crazy-max crazy-max deleted the git-fragment-format-func branch October 11, 2025 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants