Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/isacikgoz/gitin
/ functions
Functions
187 in github.com/isacikgoz/gitin
⨍
Functions
187
◇
Types & classes
42
↓ 65 callers
Function
Cprint
Cprint returns the text as colored cell slice
term/terminal.go:86
↓ 24 callers
Method
String
()
git/repository.go:33
↓ 13 callers
Method
Write
Write writes a single line to the underlining buffer.
term/bufferedwriter.go:38
↓ 12 callers
Method
Target
()
git/repository.go:32
↓ 8 callers
Method
WriteCells
WriteCells add colored text to the inner buffer
term/bufferedwriter.go:99
↓ 6 callers
Method
Path
Path returns the filesystem location of the repository
git/repository.go:90
↓ 6 callers
Method
Run
Run as name implies starts the prompt until it quits
prompt/prompt.go:124
↓ 6 callers
Method
Stop
Stop sends a quit signal to the main loop of the prompt
prompt/prompt.go:164
↓ 6 callers
Function
popGitCommand
(r *git.Repository, args []string)
cli/commands.go:10
↓ 6 callers
Function
unpackRawCommit
(repo *Repository, raw *lib.Commit)
git/commit.go:93
↓ 5 callers
Method
Index
Index returns the index of the item currently selected inside the searched list
prompt/list.go:41
↓ 5 callers
Method
Indexed
Indexed true if entry added to index
git/status.go:204
↓ 5 callers
Function
NewList
NewList creates and initializes a list of searchable items. The items attribute must be a slice type.
prompt/sync_list.go:39
↓ 5 callers
Function
highLightedText
(matches []int, c color.Attribute, str string)
cli/rendering.go:61
↓ 4 callers
Method
IsRemote
IsRemote returns false if it is a local branch
git/branch.go:138
↓ 4 callers
Method
Reset
Reset truncates the underlining buffer and marks all its previous lines to be cleared during the next Write.
term/bufferedwriter.go:32
↓ 4 callers
Method
SetState
SetState replaces the state of the prompt
prompt/prompt.go:358
↓ 4 callers
Method
State
State return the current replace-able vars as a struct
prompt/prompt.go:344
↓ 4 callers
Function
exitIfError
(err error)
cmd/gitin/main.go:46
↓ 4 callers
Method
render
render function draws screen's list to terminal
prompt/prompt.go:233
↓ 4 callers
Method
runCommandWithArgs
(args []string)
cli/status.go:211
↓ 4 callers
Method
toNewLibSignature
()
git/commit.go:29
↓ 3 callers
Method
AddKeyBinding
AddKeyBinding adds a key-function map to prompt
prompt/prompt.go:267
↓ 3 callers
Method
Branches
Branches loads branches with the lib's branch iterator loads both remote and local branches
git/branch.go:28
↓ 3 callers
Function
Create
Create returns a pointer to prompt that is ready to Run
prompt/prompt.go:82
↓ 3 callers
Method
Fd
()
term/terminal.go:29
↓ 3 callers
Method
Flush
Flush writes any buffered data to the underlying io.Writer, ensuring that any pending data is displayed.
term/bufferedwriter.go:116
↓ 3 callers
Method
Items
Items returns a slice equal to the size of the list with the current visible items and the index of the active item in this list.
prompt/list.go:45
↓ 3 callers
Method
LoadHead
LoadHead can be used to refresh HEAD ref
git/repository.go:67
↓ 3 callers
Method
LoadStatus
LoadStatus simply emulates a "git status" and returns the result
git/status.go:134
↓ 3 callers
Method
Next
Next moves the visible list forward one item
prompt/list.go:5
↓ 3 callers
Function
WithInformation
WithInformation adds additional information below to the prompt
prompt/prompt.go:117
↓ 3 callers
Function
WithItemRenderer
WithItemRenderer to add your own implementation on rendering an Item
prompt/prompt.go:110
↓ 3 callers
Function
WithSelectionHandler
WithSelectionHandler adds a selection handler to the prompt
prompt/prompt.go:103
↓ 3 callers
Function
branchInfo
(b *git.Branch, yours bool)
cli/rendering.go:84
↓ 3 callers
Method
clearBuffer
()
prompt/async_list.go:53
↓ 3 callers
Method
flushToScope
(ctx *searchContext, fireUpdate bool)
prompt/async_list.go:169
↓ 3 callers
Method
reloadStatus
reloads the list
cli/status.go:221
↓ 3 callers
Function
stautsText
(text string)
cli/rendering.go:49
↓ 2 callers
Function
NewBufferedWriter
NewBufferedWriter creates and initializes a new BufferedWriter.
term/bufferedwriter.go:26
↓ 2 callers
Function
Open
Open load the repository from the filesystem
git/repository.go:37
↓ 2 callers
Method
PageDown
PageDown moves the visible list forward by x items. Where x is the size of the visible items on the list
prompt/list.go:16
↓ 2 callers
Method
PageUp
PageUp moves the visible list backward by x items. Where x is the size of the visible items on the list
prompt/list.go:12
↓ 2 callers
Method
Prev
Prev moves the visible list back one item.
prompt/list.go:8
↓ 2 callers
Method
Start
Start returns the current render start position of the list.
prompt/list.go:31
↓ 2 callers
Method
addBuffer
(items ...interface{})
prompt/async_list.go:135
↓ 2 callers
Method
bareCommit
(arg string)
cli/status.go:168
↓ 2 callers
Method
bareDelete
(item interface{}, mode string)
cli/branch.go:107
↓ 2 callers
Function
fileStatArgs
fileStatArgs returns git command args for getting diff
cli/status.go:244
↓ 2 callers
Method
flushBuffer
()
prompt/async_list.go:114
↓ 2 callers
Function
unpackRawBranch
(r *lib.Repository, branch *lib.Branch)
git/branch.go:62
↓ 2 callers
Function
workingTreeClean
(b *git.Branch)
cli/rendering.go:143
↓ 1 callers
Function
BranchPrompt
BranchPrompt configures a prompt to serve as a branch prompt
cli/branch.go:21
↓ 1 callers
Method
ClearScreen
ClearScreen solves problems (R) and use it after Reset()
term/bufferedwriter.go:156
↓ 1 callers
Function
Close
Close restores the terminal state
term/terminal.go:66
↓ 1 callers
Method
CommitsChan
Commits returns commits as channel with given size
git/commit.go:63
↓ 1 callers
Method
Cursor
Cursor is the current cursor position
prompt/list.go:51
↓ 1 callers
Method
DeltaStatusString
DeltaStatusString retruns delta status as string
git/status.go:260
↓ 1 callers
Method
Deltas
Deltas returns the actual changes with file info
git/status.go:110
↓ 1 callers
Method
Diff
Diff has similar behavior to "git diff <commit>"
git/commit.go:191
↓ 1 callers
Function
DisableColor
DisableColor makes cell attributes meaningless
term/terminal.go:98
↓ 1 callers
Method
Error
()
git/errors.go:6
↓ 1 callers
Function
Init
Init initializes the term package
term/terminal.go:45
↓ 1 callers
Method
Len
()
prompt/sync_list.go:20
↓ 1 callers
Function
LogPrompt
LogPrompt configures a prompt to serve as a commit prompt
cli/log.go:25
↓ 1 callers
Method
Matches
Matches returns the matched items against a search term
prompt/list.go:48
↓ 1 callers
Function
NewAsyncList
NewAsyncList creates and initializes a list of searchable items. The items attribute must be a slice type.
prompt/async_list.go:76
↓ 1 callers
Function
NewRuneReader
NewRuneReader creates a new instance of RuneReader
term/runereader.go:19
↓ 1 callers
Method
ParentID
ParentID returns the commits parent hash.
git/commit.go:282
↓ 1 callers
Method
ReadRune
ReadRune returns a single rune from the stdin
term/runereader.go:26
↓ 1 callers
Method
Search
Search allows the list to be filtered by a given term.
prompt/list.go:25
↓ 1 callers
Method
SetCursor
SetCursor sets the position of the cursor in the list. Values out of bounds will be clamped.
prompt/list.go:38
↓ 1 callers
Method
SetExitMsg
SetExitMsg adds a rendered cell grid to be printed after prompt is finished
prompt/prompt.go:373
↓ 1 callers
Method
SetStart
SetStart sets the current scroll position. Values out of bounds will be clamped.
prompt/list.go:34
↓ 1 callers
Method
Size
Size is the number of items to be displayed
prompt/list.go:54
↓ 1 callers
Method
StatusEntryString
StatusEntryString returns entry status in pretty format
git/status.go:209
↓ 1 callers
Function
StatusPrompt
StatusPrompt configures a prompt to serve as work-dir explorer prompt
cli/status.go:23
↓ 1 callers
Method
Tags
Tags loads tags from the refs
git/tag.go:14
↓ 1 callers
Method
Type
()
git/repository.go:31
↓ 1 callers
Method
Update
()
prompt/list.go:56
↓ 1 callers
Method
addToStatus
(raw lib.StatusEntry)
git/status.go:168
↓ 1 callers
Function
additionalHelp
()
cmd/gitin/main.go:68
↓ 1 callers
Method
allControls
()
prompt/prompt.go:333
↓ 1 callers
Function
applyPatchCmd
(r *git.Repository, entry *git.StatusEntry, patch string)
cli/status.go:283
↓ 1 callers
Function
commitRefs
(r *git.Repository, c *git.Commit)
cli/log.go:210
↓ 1 callers
Method
defineKeyBindings
()
cli/branch.go:54
↓ 1 callers
Method
defineKeybindings
()
cli/status.go:69
↓ 1 callers
Method
defineKeybindings
()
cli/log.go:181
↓ 1 callers
Function
evalArgs
define the program commands and args
cmd/gitin/main.go:54
↓ 1 callers
Function
genHelp
returns multiline so the return value will be a 2-d slice
prompt/renderer.go:42
↓ 1 callers
Function
generateDiffFile
(r *git.Repository, entry *git.StatusEntry)
cli/status.go:268
↓ 1 callers
Function
initRepoFromPath
(path string)
git/repository.go:51
↓ 1 callers
Function
lastCommitArgs
lastCommitArgs returns the args for show stat
cli/status.go:257
↓ 1 callers
Method
mainloop
this is the main loop for reading input channel
prompt/prompt.go:183
↓ 1 callers
Function
newSearchContext
(c context.Context)
prompt/async_list.go:40
↓ 1 callers
Function
newTerminalState
(input Reader)
term/terminal.go:74
↓ 1 callers
Method
onKey
default key handling function
prompt/prompt.go:273
↓ 1 callers
Method
reloadBranches
reloads the list
cli/branch.go:123
↓ 1 callers
Function
renderSearch
(placeholder string, inputMode bool, input string)
prompt/renderer.go:63
↓ 1 callers
Method
search
(term string)
prompt/async_list.go:183
next →
1–100 of 187, ranked by callers