Does anyone know what the equivalent of git commit -a
is in gitpython?
I have tried repo.index.commit
, but don't see how to add the -a option.
repo.index.add
adds only new files, not existing files that have been modified. It doesn't seem to support the update
function as in git add -u
.
I could do something like repo.git.commit('-a')
, or even
repo.git.add('-u')
repo.index.commit(comment)
But I would think the high-level interface should be capable of doing this. Am I missing something?
Thanks in advance,
Evert