Remove duplicated repositories#200
Merged
smacker merged 1 commit intosrc-d:masterfrom Feb 19, 2019
smacker:remove_dup_repos
Merged
Remove duplicated repositories#200smacker merged 1 commit intosrc-d:masterfrom smacker:remove_dup_repos
smacker merged 1 commit intosrc-d:masterfrom
smacker:remove_dup_repos
Conversation
|
A couple of things, correct me if I'm wrong:
|
Contributor
Author
|
Me neither, it would be great to have an input from someone with more experience for this kind of more idiomatic stuff. |
In case of bare or standard repositories engine can return more than 1 repository for the same directory. The most common case is when you just "git clone" remote repository and run gemini on it. Engine would produce 2 different repositories: - local one: file://path/to/directory - remote one: https://github.com/... As a result all files in the repository will have duplicates which is incorrect from user point of view. Signed-off-by: Maxim Sukharev <max@smacker.ru>
Contributor
Author
|
@se7entyse7en I have changed the code to improve limit logic and made it immutable. It's not as short as you suggest and maybe less idiomatic. But imo it's easy to understand which was my point. Taking into account that all gemini devs aren't hard-core scala developers, I value readiablity higher than idiomacity. |
se7entyse7en
approved these changes
Feb 19, 2019
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In case of bare or standard repositories engine can return more than 1
repository for the same directory.
The most common case is when you just "git clone" remote repository and
run gemini on it.
Engine would produce 2 different repositories:
As a result all files in the repository will have duplicates which is
incorrect from user point of view.
Signed-off-by: Maxim Sukharev max@smacker.ru