Skip to main content

build_suggestion

Function build_suggestion 

Source
pub fn build_suggestion(inp: &Inputs) -> String
Expand description

Build the suggested commit-message text.

Priority (staged-before-status):

  1. staged item file(s) -> complete subject with their id(s).
  2. else exactly one in-progress item -> complete subject with its id.
  3. else ambiguous/none -> empty subject + candidates as commented lines.