Replicate git commit --only
#1145
-
Apologies if this is a 'newbie' question, but is there a way to commit only certain paths from the index tree, akin to |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This would be very interesting to know, since I can not find anything like this in the docs or somewhere |
Beta Was this translation helpful? Give feedback.
-
I think if in doubt, and for these one-off commands, one can start off using git directly. That way you can basically write simple scripts closely resembling git invocations in python. Otherwise one would have to implement this functionality using the plumbing (low-level functionality) provided by GitPython, which isn't what anyone should start out with. Even though I close this issue, please feel free posting follow-up questions here for eventual response. |
Beta Was this translation helpful? Give feedback.
I think if in doubt, and for these one-off commands, one can start off using git directly. That way you can basically write simple scripts closely resembling git invocations in python.
Otherwise one would have to implement this functionality using the plumbing (low-level functionality) provided by GitPython, which isn't what anyone should start out with.
Even though I close this issue, please feel free posting follow-up questions here for eventual response.