You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 2, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 2, 2026. It is now read-only.
Question: How would I implement the equivalent of git status? #117
+1. I want to be able to open the repo, and then report which branch or commit is currently checked out.... Some of what git status does. I have read over the API a few times and it looks like I have to open the repo, then specify a branch or commit to take action on. Is what I am trying to do possible with this module?
@niahmiah I think this lib is used to manipulate the files in .git and it leaves out the features needed to work against a working tree which is what git status needs.
Activity
niahmiah commentedon Dec 17, 2013
+1. I want to be able to open the repo, and then report which branch or commit is currently checked out.... Some of what git status does. I have read over the API a few times and it looks like I have to open the repo, then specify a branch or commit to take action on. Is what I am trying to do possible with this module?
cadorn commentedon Dec 17, 2013
@niahmiah I think this lib is used to manipulate the files in
.gitand it leaves out the features needed to work against a working tree which is whatgit statusneeds.niahmiah commentedon Dec 17, 2013
Yeah, it looks like js-git, and the associated git-node, can achieve what I needed. Bonus, all javascript, no compile
https://github.com/creationix/js-git
https://github.com/creationix/git-node
tbranyen commentedon Mar 25, 2014
@niahmiah were you able to accomplish what you needed from js-git/git-node? Just curious as to what the code solution looked like.