Is it possible to collect output of a git command into a Python variable?
Lets a simple command like git status which gives the list of files changed on the repo. Lets say the output of git status is following
A.cpp
B.hpp
C.cpp
Is it possible to get the above output of git status into a Python list?
I read the some git commands do not pipe the output and rather just print? Is it true even today? If a git command was piping the output, how can one collect it a Python list or variable?
Can GitPython help here?