@BrianRoach, I agree it is a more specific case of the other question, but when I was trying to solve this problem, the first thing that comes to mind is not to Google for "command line arguments from a file content". Therefore I think this question will still be beneficial for future seekers.
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
some_command $line
withgit add $line
.