Skip to content

index.add() method add support for "chmod=+x" #1156

Answered by Byron
ericsunplus asked this question in Q&A
Discussion options

You must be logged in to vote

Unless you explicitly require GitPython for 'plumbing', it is recommended to use Repo(path).git.add(…, chmod='+x'), which supports all flags that git supports. You can read more about that in the respective section of the docs.

Even though I am closing this issue assuming you don't actually need plumbing, please let me know if you do which would make this a feature request or bugfix. Thank you

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Byron
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1021 on February 26, 2021 11:18.