On Sat, 25 May, Martin Gagnon wrote:
> You can use xargs (if you are in a posix system)
>
> Example:
> cat file_list.txt | xargs fossil add
>
> If you have space on some file names.. it could cause some problem, if
> you have a few you can add them separately...
Thanks for all your help. Yes, I know all about this.
While this works for some commands (like your "fossil add" example,
because it does not matter how often "fossil add" is being called), it
does not work so good with other commands, e.g. "fossil commit": It
would produce several commits if the file list exceeds the threshold
limit set by xargs (see its man page).
If you'd want to avoid this, you could also just do
fossil commit -m "message" `cat file_list.txt`
but then again having the problem with the command line length limit.
The other point is, that I'm looking for an OS independent way of doing
it, because it has to work in a mixed-OS environment.
That's why I specifically asked for the possibility to let fossil
handle this. Compilers call it "compiler response file". Go, google it
up, if you don't know what I'm talking about.
Greetings,
Stefan
--
Stefan Bellon
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users