package
0.0.0-20250207170155-8b3aac1c94b0
Repository: https://github.com/soyuz43/prbuddy.git
Documentation: pkg.go.dev
# Functions
CheckExtensionInstalled verifies if the extension installation marker exists.
CreateExtensionIndicator creates the extension installation marker.
DeletePortFile removes the port file.
EnsureAppCacheDir creates (if necessary) and verifies the application cache directory.
ExecGit executes a git command with the given arguments and returns the trimmed output.
GetDiffs returns diffs based on the given mode.
GetRepoPath returns the top-level path of the current Git repository.
IsIgnored returns true if the file path matches any of the given ignore patterns.
JoinLines joins a slice of strings into a single string separated by newlines.
LogLittleGuyContext writes the given data to a file named "littleguy-<conversationID>.txt" in a dedicated "logs" directory.
MarshalJSON converts the given data to a pretty-printed JSON string.
ReadFile reads the file at the given path while holding a shared lock.
ReadGitignore reads the .gitignore file at the given root directory and returns a slice of compiled regular expressions representing ignore patterns.
ReadPortFile reads and validates the port number from the port file.
RemoveExtensionIndicator removes the extension installation marker.
SanitizeBranchName replaces "/" with "_" and spaces with "-" in branch names.
SaveConcatenatedContextToFile concatenates a slice of context messages into a readable string and writes it to a timestamped text file in the repository's .git/pr_buddy_db/context_logs directory.
SaveContextToFile marshals a slice of context messages (from contextpkg.Message) to JSON and writes the result to a timestamped file in the repository's .git/pr_buddy_db/context_logs directory.
SplitLines splits a string into lines, removing any trailing newline.
WriteFile performs an atomic write to the given file path by writing to a temporary file with an exclusive lock, then renaming it into place.
WritePortFile writes the given port number atomically to a port file.
# Constants
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author