R/ff_sup_inout.R
ff_sup_git_status_check.Rd
A file could be new, or cold be modified, identify this by using the git status command and interpreting the output.
ff_sup_git_status_check(spt_file)
path to file with file name
a named list of bools and strings
it_status - 1 is new, 2 is modified, 3 no change
st_git_status - string print out of file status
bl_modified - bool 1 if modified
bl_anewfile - bool 1 if new
bl_nochange - bool 1 if no change
spt_file = 'C:/Users/fan/Math4Econ/README.md'
ff_sup_git_status_check(spt_file)
#> $it_status
#> [1] 3
#>
#> $st_git_status
#> [1] "NO CHNGE: C:/Users/fan/Math4Econ/README.md"
#>
#> $bl_modified
#> [1] FALSE
#>
#> $bl_anewfile
#> [1] FALSE
#>
#> $bl_nochange
#> [1] TRUE
#>