FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add convenience methods to status file by maxkorp · Pull Request #524 · nodegit/nodegit · GitHub

Repository navigation

Add convenience methods to status file - #524

Merged
tbranyen merged 2 commits into
masterfrom
status-file-extras
Apr 18, 2015
Merged

tbranyen merged 2 commits into
masterfrom
status-file-extras

Conversation

maxkorp commented Apr 2, 2015

Copy link
Copy Markdown
Collaborator

Adds methods inWorkingTree and inIndex to StatusFiles. These just check it the status contains any WT_xxx status codes (or INDEX_xxx). It's very possible that a status could have both (eg if you've done a patch stage).

maxkorp commented Apr 2, 2015

Copy link
Copy Markdown
Collaborator Author

My only thought is that I'm not super hot on the method names. Anybody have any better ideas?

Copy link
Copy Markdown
Collaborator

I think the names are ok. Maybe isInWorkingTree? But that's sounding to verbose to me.

Copy link
Copy Markdown
Member

The names make sense to me. Merging, thanks!

tbranyen added a commit that referenced this pull request Apr 18, 2015
Add convenience methods to status file
tbranyen merged commit 2b009fd into master Apr 18, 2015
tbranyen deleted the status-file-extras branch April 18, 2015 06:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL