gitremind

package module
v0.0.0-...-281007b Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: GPL-3.0 Imports: 9 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Build Status GoDoc

gitRemind

Searches your drive for git repositories, and tells you if they need to be committed or pushed.

I have a lot of git repositories, and I at the end of the night I have 10 or more repositories to update. Then I forget to upload my changes, and end up with merge conflicts or missing work. So I wrote gitRemind to check all my repositories and remind me to sync them.

Building

go get github.com/donomii/gitRemind

Use

./gitRemind

./gitRemind --gui

gitRemind will recursively search every directory under the current one. If it finds a git repository, it does a git status, and if there are changed files or you are ahead of the master branch, it will tell you.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitWithMessagePush

func CommitWithMessagePush(targetDir, message string)

Types

type GitRemind

type GitRemind struct {
	Repos map[string][]string
	// contains filtered or unexported fields
}

GitRemind holds the state of the git scan

func NewGitRemind

func NewGitRemind() *GitRemind

NewGitRemind creates a new GitRemind instance

func (*GitRemind) GetRepo

func (g *GitRemind) GetRepo(path string) ([]string, bool)

GetRepo returns details for a single repo safely

func (*GitRemind) GetRepos

func (g *GitRemind) GetRepos() map[string][]string

GetRepos returns a safe copy of the repositories map

func (*GitRemind) ProcessRepo

func (g *GitRemind) ProcessRepo(path string, verbose, autoSync bool)

func (*GitRemind) RemoveRepo

func (g *GitRemind) RemoveRepo(repo string)

RemoveRepo removes a repo from the list

func (*GitRemind) Scan

func (g *GitRemind) Scan(scanDir string, verbose bool, autoSync bool)

Scan scans a directory for git repositories

func (*GitRemind) ScanRepo

func (g *GitRemind) ScanRepo(path string)

ScanRepo adds a single repo to the scan queue

func (*GitRemind) SetRepo

func (g *GitRemind) SetRepo(path string, details []string)

SetRepo updates the details for a repository

Directories

Path Synopsis
Package main provides various examples of Fyne API capabilities
Package main provides various examples of Fyne API capabilities

Jump to

Keyboard shortcuts

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