![]() |
Macros for SAS Application Developers
https://github.com/sasjs/core |
Creates a dataset with the output from GIT_STATUS()
More...
Go to the source code of this file.
Uses git_status()
to fetch the number of changed files, then iterates with git_status_get()
, inserting all attributes into an output dataset.
Usage:
%let dir=%sysfunc(pathname(work))/core; %let repo=https://github.com/sasjs/core; %put source clone rc=%sysfunc(GITFN_CLONE(&repo,&dir)); %mf_writefile(&dir/somefile.txt,l1=some content) %mf_deletefile(&dir/package.json) %mp_gitstatus(&dir,outds=work.gitstatus)
More info on these functions is in this [helpful paper] (https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3057-2019.pdf) by Danny Zimmerman.
[in] | gitdir | The directory containing the GIT repository |
[out] | outds= | (work.git_status) The output dataset to create. Vars:
|
[in] | mdebug= | (0) Set to 1 to enable DEBUG messages |
Definition in file mp_gitstatus.sas.