github.com/grantbow/fit@v0.7.1-0.20220916164603-1f7c88ac81e6/fit/changed-issues/Description (about)

     1  what it does now: warn of changed files
     2  
     3  what it needs to do: identified changed issues (not files)
     4  
     5  next: use the list of changes with a notification system for email and/or twilio texts.
     6  
     7  functions output []byte of command output with an error.
     8  
     9  // scm/GitManager.go
    10  // SCMIssuesUpdaters() ([]byte, error) {
    11  uses
    12  $ git status --porcelain -u -- :/issues
    13  M  issues/changed-issues/Description
    14  
    15  // scm/GitManager.go
    16  // SCMIssuesCacher() ([]byte, error) {
    17  uses
    18  $ git diff --name-status --cached HEAD -- :/issues
    19  M       issues/changed-issues/Description
    20  
    21  in both cases splitting on / is ok as issues is a known quantity anyway.
    22  
    23  should use the same as path/filepath 
    24  constant os.PathSeparator
    25  and not hard code the / of unix.
    26