Skip to content

BREAKING: Added blob methods and converted to async#1327

Merged
implausible merged 6 commits into
nodegit:masterfrom
cjhoward92:feature/blob_methods
Aug 16, 2017
Merged

BREAKING: Added blob methods and converted to async#1327
implausible merged 6 commits into
nodegit:masterfrom
cjhoward92:feature/blob_methods

Conversation

@cjhoward92
Copy link
Copy Markdown
Contributor

@cjhoward92 cjhoward92 commented Jul 13, 2017

Exposed more blob methods from libgit2. The methods are:

  • git_blob_filtered_content
  • git_blob_create_fromdisk

Also made the createFromBuffer and createFromWorkdir methods asynchronous.

This is a breaking change to the blob api. createFromBuffer and createFromWorkdir are now asynchronous and thus return promises. This is because we try to maintain a standard of having methods that touch the disk as async to prevent deadlocks. While createFromBuffer does not touch the disk, it has a similar api to the other createFrom* methods and we thought it made sense to make it async.

@implausible
Copy link
Copy Markdown
Member

Rebase this on master, please.

@cjhoward92 cjhoward92 force-pushed the feature/blob_methods branch from 78bd9ac to e2e34c9 Compare July 25, 2017 19:05
Comment thread test/tests/blob.js Outdated
committer,
commitMessage,
treeOid,
[parent]);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed you have a preference for closing on the same line, can we update the style to open/close on new lines if it's necessary to add new lines?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I will run through my tests and make the changes on Monday.

@cjhoward92 cjhoward92 force-pushed the feature/blob_methods branch from 255e6d0 to 7165bfb Compare July 31, 2017 14:36
@cjhoward92 cjhoward92 changed the title Added blob methods and converted to async BREAKING: Added blob methods and converted to async Aug 2, 2017
@implausible
Copy link
Copy Markdown
Member

Other than the bblobs this is looking good.

@cjhoward92 cjhoward92 force-pushed the feature/blob_methods branch from 7165bfb to cdfad45 Compare August 16, 2017 14:53
@implausible implausible merged commit 0f0b8c9 into nodegit:master Aug 16, 2017
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.

2 participants