Reputation: 3181
Does git provide a REST API for fetching the output of the gits status command. I looked up the https://developer.github.com/v3/ but couldn't find what I am looking for. I want to get all the text output that gets displayed when we type in the git status command in the command prompt/git bash terminal and then be able to display that output on a webpage /application window.
Upvotes: 1
Views: 603
Reputation: 94445
Server repositories are bare, they don't have the working directory. And in a bare repository (even local) git status
is meaningless (because it compares the repository with the working tree) and produces error:
fatal: This operation must be run in a work tree
Hence there is no API for getting status.
Upvotes: 2