git

package
v0.0.0-...-1c89d81 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add() error

Add opens up an fzf window to select the files that need to be staged before the semantic commit is generated.

func AddAll

func AddAll() error

AddAll stages all changes.

func Commit

func Commit(commit string) error

Commit creates a commit with the given message

func CommitAmend

func CommitAmend() error

CommitAmend amends the last commit

func CreateSemanticCommit

func CreateSemanticCommit() (string, error)

CreateSemanticCommit creates a semantic commit message based on the git diff output

func GetCurrentBranch

func GetCurrentBranch() (string, error)

GetCurrentBranch returns the current branch name

func HasStagedFiles

func HasStagedFiles() (bool, error)

HasStagedFiles checks if there are any staged files

Types

This section is empty.

Jump to

Keyboard shortcuts

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