The asterisk is a shell function that expands to all files in a given path. For example if you run "echo *", the shell will return a list of all files. So git add is still being given all the file names, we just need to replicate that * behavior.
I think what you'd want to do is create a data set of all files in a given path, then use the data step to run git_index_add on each of them. The way I've done this in the past is here (creating a dataset called dirlist from the path defined in the macro variable &path). This does require XCMD so we can run the ls command.
filename DIRLIST pipe "ls &path";
data dirlist;
infile dirlist lrecl=200 truncover;
input file_name $100.;
run;
I think you could then add a "set dirlist;" to your data _null_ data step, and instead of "your-file" use file_name.
--
Greg Wootton | Principal Systems Technical Support Engineer