gitclient

package
v0.3.0-beta Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BranchHandler

func BranchHandler(w http.ResponseWriter, r *http.Request)

func CommitAndMaybePushHandler

func CommitAndMaybePushHandler(w http.ResponseWriter, r *http.Request)

API handler to commit and optionally push changes

func CommitGraphHandler

func CommitGraphHandler(w http.ResponseWriter, r *http.Request)

func GetUncommittedFilesHandler

func GetUncommittedFilesHandler(w http.ResponseWriter, r *http.Request)

Types

type BranchResponse

type BranchResponse struct {
	Branch string `json:"branch"`
}

type Commit

type Commit struct {
	Hash    string   `json:"hash"`
	Message string   `json:"message"`
	Author  string   `json:"author"`
	Date    string   `json:"date"`
	Parents []string `json:"parents"` // Store the hashes of parent commits
}

Jump to

Keyboard shortcuts

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