Documentation ¶
Overview ¶
package git contains git related actions
Index ¶
- func ActionAliases(gitDir string) carapace.Action
- func ActionAuthors() carapace.Action
- func ActionBundleHeads(file string) carapace.Action
- func ActionCachedDiffs(ref string) carapace.Action
- func ActionChanges(opts ChangeOpts) carapace.Action
- func ActionCleanupMode() carapace.Action
- func ActionColorConfigs() carapace.Action
- func ActionColorModes() carapace.Action
- func ActionColorMovedModes() carapace.Action
- func ActionColorMovedWsModes() carapace.Action
- func ActionColors() carapace.Action
- func ActionColumnLayoutModes() carapace.Action
- func ActionCommitters() carapace.Action
- func ActionConfigTypeOptions(t string) carapace.Action
- func ActionConfigTypes() carapace.Action
- func ActionConfigValues(config string) carapace.Action
- func ActionConfigs() carapace.Action
- func ActionCurrentBranch() carapace.Action
- func ActionDeveloperInterfaces() carapace.Action
- func ActionDiffAlgorithms() carapace.Action
- func ActionDiffFilters() carapace.Action
- func ActionDiffTools() carapace.Action
- func ActionDirstats() carapace.Action
- func ActionFieldNames() carapace.Action
- func ActionHeadCommits(limit int) carapace.Action
- func ActionLocalBranches() carapace.Action
- func ActionLsRemoteRefs(opts LsRemoteRefOption) carapace.Action
- func ActionMaintenanceTasks() carapace.Action
- func ActionMergeStrategy() carapace.Action
- func ActionMergeStrategyOptions(strategy string) carapace.Action
- func ActionNotes() carapace.Action
- func ActionNotesMergeStrategies() carapace.Action
- func ActionRecentCommits(limit int) carapace.Action
- func ActionRefChanges(ref string) carapace.Action
- func ActionRefCommits(ref string) carapace.Action
- func ActionRefDiffs(refs ...string) carapace.Action
- func ActionRefFiles(ref string) carapace.Action
- func ActionRefParents(ref string) carapace.Action
- func ActionRefRanges(opts RefOption) carapace.Action
- func ActionRefs(refOption RefOption) carapace.Action
- func ActionRemoteBranchNames(remote string) carapace.Action
- func ActionRemoteBranches(remote string) carapace.Action
- func ActionRemoteUrls(remote string) carapace.Action
- func ActionRemotes() carapace.Action
- func ActionRepositorySearch(opts SearchOpts) carapace.Action
- func ActionStashes() carapace.Action
- func ActionSubmoduleBranches(filter ...string) carapace.Action
- func ActionSubmoduleNames() carapace.Action
- func ActionSubmodulePaths() carapace.Action
- func ActionTags() carapace.Action
- func ActionTextAttributes() carapace.Action
- func ActionUnmergedFiles() carapace.Action
- func ActionVariables() carapace.Action
- func ActionWhitespaceModes() carapace.Action
- func ActionWhitespaceProblems() carapace.Action
- func ActionWordDiffModes() carapace.Action
- func ActionWorktrees() carapace.Action
- func ActionWsErrorHighlightModes() carapace.Action
- func Aliases(dir, gitDir string) (map[string]string, error)
- type ChangeOpts
- type LsRemoteRefOption
- type RefOption
- type SearchOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionAuthors ¶
ActionAuthors completes authors
Some Name (email@host.com) Another Name (email@another.com)
func ActionBundleHeads ¶
ActionBundleHeads completes refs in a bundle
func ActionCachedDiffs ¶
ActionCachedDiffs completes changes between stage and given ref
func ActionChanges ¶
func ActionChanges(opts ChangeOpts) carapace.Action
ActionChanges completes (un)staged changes
fileA ( M) pathA/fileB (??)
func ActionCleanupMode ¶
ActionCleanupMode completes cleanup modes
strip (strip empty lines and trailing whitespace) whitespace (same as strip except #commentary is not removed)
func ActionColorConfigs ¶
ActionColorConfigs completes color configs
func ActionColorMovedModes ¶
ActionColorMovedModes completes color moved modes
no (Moved lines are not highlighted) default (default mode)
func ActionColorMovedWsModes ¶
ActionColorMovedWsModes completed color moved whitespace modes
no (Do not ignore whitespace when performing move detection) ignore-space-at-eol (Ignore changes in whitespace at EOL)
func ActionColumnLayoutModes ¶
ActionColumnLayoutModes completions column layout modes
always (always show in columns) auto (show in columns if the output is to the terminal)
func ActionConfigTypeOptions ¶
ActionConfigTypeOptions completes options for a config type
func ActionConfigTypes ¶
ActionConfigTypes completes config types
func ActionConfigValues ¶
ActionConfigValues completes config values
func ActionDeveloperInterfaces ¶
ActionDeveloperInterfaces completes developer interfaces
format-bundle (The bundle file format) format-chunk (Chunk-based file formats)
func ActionDiffAlgorithms ¶
ActionDiffAlgorithms completes diff algorithms
myers (The basic greedy diff algorithm) minimal (Spend extra time to make sure the smallest possible diff is produced)
func ActionDirstats ¶
ActionDirstats completes dirstats
files (Compute the dirstat numbers by counting the number of files changed) cumulative (Count changes in a child directory for the parent directory as well)
func ActionFieldNames ¶
ActionFieldNames completes field names
author (the author header-field) body (the body of the message)
func ActionHeadCommits ¶
ActionHeadCommits completes recent head commits
HEAD (commit message) HEAD~1 (commit message)
func ActionLocalBranches ¶
ActionLocalBranches completes local branches
master (last commit msg) another (last commit msg)
func ActionLsRemoteRefs ¶
func ActionLsRemoteRefs(opts LsRemoteRefOption) carapace.Action
ActionLsRemoteRefs completes branches and tags for a remote url
gh-pages (da4528d0a57ad71417336f0e96fa65ece2fad45a) master (3fbdef3c6a10094812a15cba8e825898b757dfb3)
func ActionMaintenanceTasks ¶
ActionMaintenanceTasks completes maintenance tasks
commit-graph (Update the commit-graph files incrementally) prefetch (Updates the object directory with the latest objects from all registered remotes)
func ActionMergeStrategy ¶
ActionMergeStrategy completes merge strategies
octopus (resolve cases with more than two heads) ours (auto-resolve cleanly by favoring our version)
func ActionMergeStrategyOptions ¶
ActionMergeStrategyOptions completes merge strategy options
ours (auto-resolve favoring ours) theirs (auto-resolve favoring theirs)
func ActionNotesMergeStrategies ¶
ActionNotesMergeStrategies completes notes merge strategies
ours (favor the local version) theirs (favor the remote version)
func ActionRecentCommits ¶
ActionRecentCommits completes recent commits
123456A ((refname) commit message) 123456B ((refname) commit message)
func ActionRefChanges ¶
ActionRefChanges completes changes made in given ref
go.mod cmd/carapace/main.go
func ActionRefCommits ¶
ActionRefCommits completes commits reachable by given ref
00 (commit message) 01 (commit message)
func ActionRefDiffs ¶
ActionRefDiffs completes changes beetween refs Accepts up to two refs 0: compare current workspace to HEAD 1: compare current workspace to given ref 2: compare first ref to second ref
func ActionRefRanges ¶
ActionRefRanges completes refs as range
HEAD..HEAD~17 (last commit msg) v.0.0.3^2~03...v0.0.4~03 (last commit msg)
func ActionRefs ¶
ActionRefs completes refs (commits, branches, tags)
HEAD~1 (last commit msg) v0.0.1 (last commit msg)
func ActionRemoteBranchNames ¶
ActionRemoteBranchNames is like ActionRemoteBranches but skips the remote prefix
master (last commit msg) another (last commit msg)
func ActionRemoteBranches ¶
ActionRemoteBranches completes remote branches
origin/master (last commit msg) upstream/another (last commit msg)
func ActionRemoteUrls ¶
ActionRemoteUrls completes remote urls
func ActionRepositorySearch ¶
func ActionRepositorySearch(opts SearchOpts) carapace.Action
ActionRepositorySearch completes repositories from github.com and gitlab.com
https://github.com/spf13/cobra https://gitlab.com/gitlab-org/gitlab-runner
func ActionStashes ¶
ActionStashes completes stash names
stash@{0} (WIP on branchA: ABCDEF1 last commit msg) stash@{1} (WIP on branchB: ABCDEF2 last commit msg)
func ActionSubmoduleBranches ¶
ActionSubmoduleBranches completes brances and tags of submodules (filtered by name) TODO verify and add example
func ActionSubmoduleNames ¶
ActionSubmoduleNames completes submodule names
cobra (https://github.com/spf13/cobra.git) pflag (https://github.com/spf13/pflag.git)
func ActionSubmodulePaths ¶
ActionSubmodulePaths completes submodules (relative path)
../cli (v1.12.1-12-gaed8966f) ../pflag (heads/forOgier)
func ActionTextAttributes ¶
ActionTextAttributes completes text attributes
func ActionVariables ¶
ActionVariables completes variables
GIT_EDITOR (nvim) GIT_PAGER (bat --style grid)
func ActionWhitespaceModes ¶
ActionWhitespaceModes completes whitespace modes
error (outputs warnings for a few such errors, and refuses to apply the patch) error-all (is similar to error but shows all errors)
func ActionWhitespaceProblems ¶
ActionWhitespaceProblems completes whitespace problems
blank-at-eof (treats blank lines added at the end of file as an error) trailing-space (is a short-hand to cover both blank-at-eol and blank-at-eof)
func ActionWordDiffModes ¶
ActionWordDiffModes completes word diff modes
no (Do not ignore whitespace when performing move detection) ignore-space-at-eol (Ignore changes in whitespace at EOL)
func ActionWorktrees ¶
ActionWorktrees completes worktrees
/tmp/carapace-spec.git ((bare)) /tmp/carapace-spec.git/mexample (a3d9c48 [doc-usage])
func ActionWsErrorHighlightModes ¶
ActionWsErrorHighlightModes completes whitespace error highlight modes
context (context lines) old (old lines)
Types ¶
type ChangeOpts ¶
func (ChangeOpts) Default ¶
func (o ChangeOpts) Default() ChangeOpts
type LsRemoteRefOption ¶
type RefOption ¶
type SearchOpts ¶
func (SearchOpts) Default ¶
func (o SearchOpts) Default() SearchOpts
func (SearchOpts) Hosts ¶
func (o SearchOpts) Hosts() []string
Source Files ¶
- alias.go
- author.go
- branch.go
- bundle.go
- change.go
- cleanup.go
- color.go
- column.go
- commit.go
- committer.go
- config.go
- diff.go
- dirstat.go
- field.go
- git.go
- help.go
- ls.go
- maintenance.go
- merge.go
- note.go
- ref.go
- remote.go
- repositorysearch.go
- stash.go
- submodule.go
- tag.go
- unmerged.go
- variable.go
- whitespace.go
- worktree.go