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

Support deterministic findTag #34

Merged
merged 1 commit into from
Dec 21, 2016

Conversation

jrowlingson
Copy link
Contributor

@jrowlingson jrowlingson commented Dec 13, 2016

Closes #32

Depends on #31

This change set includes some ground-work for #33


var tags = fs.readdirSync(tagsPath);
var tags = findPackedTags(gitPath, sha)
.concat(findUnpackedTags(gitPath, sha));
Copy link
Contributor Author

@jrowlingson jrowlingson Dec 13, 2016

Choose a reason for hiding this comment

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

The sort order of readdir and the packed-ref file is not guaranteed. Granted, it is unlikely that either will change but this gives some extra confidence that findTag() will remain deterministic.

@rwjblue
Copy link
Owner

rwjblue commented Dec 14, 2016

I think this needs a rebase?

@jrowlingson
Copy link
Contributor Author

@rwjblue Ah, yep - rebased

@rwjblue rwjblue merged commit 1ca65ea into rwjblue:master Dec 21, 2016
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