Skip to main content

GitSurface

Function GitSurface 

Source
pub fn GitSurface(_: GitSurfaceProps) -> Element
Expand description

The branch, the status counts, and the changed files as a grid with one tab stop. Arrows, Home, and End move the selection; a Stage button sits on each unstaged file.

§Props

For details, see the props struct definition.

  • branch : Option<String>

    The branch, or None before the first commit.

  • entries : Vec<GitEntry>
  • label : Option<AccessibleName>

    Names the file grid; “Changed files” when omitted.

  • onselect : Option<EventHandler<String>>
  • onstage : Option<EventHandler<String>>
  • class : Option<String>
  • attributes : Vec<Attribute>