Skip to main content

Crate gch

Crate gch 

Source
Expand description

Stage or discard selected Git changes interactively.

ยงErrors

  • Git operations or user interaction fails.

Structsยง

OpIter
An iterator over the variants of Op
RenderableGitStatusEntry
Newtype wrapper adding colored Display for a ytil_git::GitStatusEntry.

Enumsยง

Op
High-level Git working tree/index operations exposed by the UI.

Functionsยง

add_entries ๐Ÿ”’
Add the provided entries to the Git index (equivalent to git add on each path).
main ๐Ÿ”’
Stage or discard selected Git changes interactively.
restore_entries ๐Ÿ”’
Delete newly created paths then restore modified paths.
write_index_symbol ๐Ÿ”’
Write an index state symbol directly to the formatter, avoiding .to_string() allocations.
write_worktree_symbol ๐Ÿ”’
Write a worktree state symbol directly to the formatter, avoiding .to_string() allocations.