gitutil

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package gitutil provides shared git-related utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAuthToURL

func AddAuthToURL(url string, conn *repos.Connection) string

AddAuthToURL adds authentication token to a git URL based on connection type. This is the canonical implementation used across the codebase.

func ExtractHost

func ExtractHost(url string) string

ExtractHost extracts the host from a URL (e.g., "https://github.com/foo" -> "github.com").

func SanitizeGitOutput

func SanitizeGitOutput(output string, conn *repos.Connection) string

SanitizeGitOutput removes sensitive information (tokens) from git command output.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL