package
0.0.0-20211026085202-854ad97855da
Repository: https://github.com/g-node/gin-cli.git
Documentation: pkg.go.dev
# Functions
Add updates the index with the changes in the files specified by 'paths'.
CheckoutFileCopies checks out copies of files specified by path from the revision with the specified commithash.
CheckoutVersion checks out all files specified by paths from the revision with the specified commithash.
CommitIfNew creates an empty initial git commit if the current repository is completely new.
DefaultRemote returns the name of the configured default gin remote.
DefaultServer returns the alias of the configured default gin server.
New returns a new client for the GIN server, configured with the server referred to by the alias in the argument.
RemoveRemote removes a remote from the repository configuration.
RemoveServer removes a server from the user configuration.
SetDefaultRemote sets the name of the default gin remote.
SetDefaultServer sets the alias of the default gin server.
UnsetDefaultRemote unsets the default gin remote in the git configuration.
# Constants
LocalChanges indicates that a file has local, committed modifications that have not been pushed.
Modified indicatres that a file has local modifications that have not been committed.
NoContent indicates that a file represents an annexed file that has not had its contents synced yet.
RemoteChanges indicates that a file has remote modifications that have not been pulled.
Removed indicates that a (previously) tracked file has been deleted or moved.
Synced indicates that an annexed file is synced between local and remote.
TypeChange indicates that a file being tracked as locked (unlocked) is now unlocked (locked).
Unlocked indicates that a file is being tracked and is unlocked for editing.
Untracked indicates that a file is not being tracked by neither git nor git annex.
# Structs
AccessToken represents a API access token.
Client is a client interface to the GIN server.
FileCheckoutStatus is used to report the status of a CheckoutFileCopies() operation.
GINUser represents a API user.
# Type aliases
FileStatus represents the state a file is in with respect to local and remote changes.
FileStatusSlice is a slice of FileStatus which implements Len() and Less() to allow sorting.