Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getGithubFileHash Function #2

Closed
jamesward opened this issue Jun 30, 2012 · 2 comments
Closed

Add getGithubFileHash Function #2

jamesward opened this issue Jun 30, 2012 · 2 comments

Comments

@jamesward
Copy link
Owner

Add a function that allows you to get a blob's hash just by specifying a branch and a file name (for when you always want the most recent instead of a specific version of a blob).

Proposed API:

$.getGithubFileHash(user, repo, file, callback, branch)

Where branch is optional (defaulting to master/HEAD). The callback function will probably just need to have a string parameter that will contain the hash.

@brntbeer
Copy link
Contributor

Oops! Just now noticed this issue. It seems my pull request is a great middle ground for this for the time being?

more than happy to continue discussion over on #4 if need be!

@jamesward
Copy link
Owner Author

I'm considering this closed thanks to @brntbeer!

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

No branches or pull requests

2 participants