@sasjs/core 4.44.0 → 4.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,6 +38,8 @@ https://documentation.sas.com/doc/ko/pgmsascdc/v_033/lefunctionsref/n1qo5miyvry1
38
38
  @li commit_time_str the commit_time_num variable cast as string
39
39
 
40
40
  @param [in] mdebug= (0) Set to 1 to enable DEBUG messages
41
+ @param [in] nobs= (0) Set to an integer greater than 0 to restrict the number
42
+ of rows returned
41
43
 
42
44
  <h4> SAS Macros </h4>
43
45
  @li mf_getgitbranch.sas
@@ -49,7 +51,7 @@ https://documentation.sas.com/doc/ko/pgmsascdc/v_033/lefunctionsref/n1qo5miyvry1
49
51
 
50
52
  **/
51
53
 
52
- %macro mp_gitlog(gitdir,outds=work.mp_gitlog,mdebug=0,filter=BRANCHONLY);
54
+ %macro mp_gitlog(gitdir,outds=work.mp_gitlog,mdebug=0,filter=BRANCHONLY,nobs=0);
53
55
 
54
56
  %local varlist i var;
55
57
  %let varlist=author children_ids committer committer_email email id
@@ -91,6 +93,9 @@ data &outds;
91
93
  if cats(in_current_branch)='TRUE' then output;
92
94
  end;
93
95
  else output;
96
+ %if &nobs>0 %then %do;
97
+ if n ge &nobs then stop;
98
+ %end;
94
99
  end;
95
100
  rc=git_commit_free(trim(gitdir));
96
101
  keep gitdir branch &varlist message time commit_time_num commit_time_str;
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@sasjs/cli": "3.13.0"
37
37
  },
38
- "version": "4.44.0"
38
+ "version": "4.45.0"
39
39
  }