Skip to content
","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

There is no easier way to do that, as GitPython provides mostly low level commands.
\nI presume you will have to parse the output of the git command execution yourself.
\nAs for the line splitting:

\n
>>> \"hi\\nho\".split(\"\\n\")\n['hi', 'ho']\n
","upvoteCount":1,"url":"https://github.com/gitpython-developers/GitPython/discussions/1165#discussioncomment-408825"}}}

How to get list of stashed changes #1165

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

You must be logged in to vote

There is no easier way to do that, as GitPython provides mostly low level commands.
I presume you will have to parse the output of the git command execution yourself.
As for the line splitting:

>>> "hi\nho".split("\n")
['hi', 'ho']

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Byron
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 #1076 on February 26, 2021 11:18.