codeintel

package
v0.0.0-...-b2e0f1d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InferCommit

func InferCommit() (string, error)

InferCommit gets a 40-character rev hash from the git clone enclosing the working dir.

func InferRepo

func InferRepo() (string, error)

InferRepo gets a Sourcegraph-friendly repo name from the git clone enclosing the working dir.

func InferRoot

func InferRoot(file string) (string, error)

InferRoot gets the path relative to the root of the git clone enclosing the given file path.

func SanitizeRoot

func SanitizeRoot(root string) string

SanitizeRoot removes redundant paths from the given root and replaces references to the root of th repo with an empty string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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