Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGitRepository ¶
CreateGitRepository initializes a new bare Git repository at the specified path and sets up a post-receive hook.
It performs the following steps:
- Creates a bare Git repository in the given directory.
- Reads the post-receive template content from the embedded templates.
- Creates a post-receive hook using the template content.
If any step fails, an error is returned with details.
func DeleteGitRepository ¶
DeleteGitRepository removes a Git repository at the given path.
The function will:
- Remove the directory at the given path and all its contents
If the removal fails, an error is returned with details.
func UpdateGitRepository ¶
UpdateGitRepository updates an existing Git repository by renaming its path.
The function will:
- Rename the directory at the given repository path to the new path.
If the renaming fails, an error is returned with details.
Types ¶
type GigtignorePage ¶
type GigtignorePage struct {
Payload struct {
Blob struct {
RawLines []string `json:"rawLines"`
} `json:"blob"`
} `json:"payload"`
}
Click to show internal directories.
Click to hide internal directories.