Navigation Menu

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

Don't treat git submodule as a project root #33

Closed
wants to merge 2 commits into from

Conversation

thomasf
Copy link
Contributor

@thomasf thomasf commented Nov 2, 2012

  1. Don't treat linked git repositories such as submodules as project roots. …
    The difference is that there is only a file named .git and not a directory.
    I do belive that this is the most common thing one would want.
  2. Always treat all scm repository meta directories as irrelevant.
    This simplifies the generic type definitions.

- Aalways treat all scm repository meta directories as irrelevant.
@dgutov
Copy link
Contributor

dgutov commented Nov 2, 2012

I do belive that this is the most common thing one would want.

I disagree with that decision.

@thomasf
Copy link
Contributor Author

thomasf commented Nov 2, 2012

Hmm, ok. I agree that its a bit of a personal taste as a result of how the projects you work on are configured.
So it becomes a matter of defaults rather than one-setting fits-all.
For most medium sized projects i work on i would definitely want this change but for some larger ones it's maybe too much.

The idea is that a sub module usually is a part of an enclosing project and because of this should be treated like an "eproject".

Could you elaborate your disagreement?

@dgutov
Copy link
Contributor

dgutov commented Nov 2, 2012

Yeah, depends on the use case. I'm thinking of the situation where submodules are external dependencies, "bundled" for convenience. You don't jump between them and the main project's files too often.

@dgutov
Copy link
Contributor

dgutov commented Nov 2, 2012

So, since the user can override this, I don't think it's worth changing the default.

@thomasf
Copy link
Contributor Author

thomasf commented Nov 2, 2012

I usually get annoyed when i "find file in project" of an submodule for reference and then from that file do another "find file in project" and don't get my projects files..

One feature I have been thinking about which kind of relates to this is to be able to set an default eproject amongs all open projects ant that all subsequent eproject-related calls only respond to the default project. I haven't looked into the consequences or implementation details of such a feature yet.

@dgutov
Copy link
Contributor

dgutov commented Nov 2, 2012

I, on the other hand, hate doing eproject-grep and seeing irrelevant files. Well, maybe changing the default would be a reasonable thing to do: adding a new type of project is easier than modifying an existing one.

Considering some types of projects as special should be quite doable, though the implementation would be different depending on whether @jrockway pulls or rejects #32.

@thomasf
Copy link
Contributor Author

thomasf commented Nov 4, 2012

I see.. Yet another alternative would be a customize-option to always consider the outermost currently open project as the actual project root. This way the actual project definitions would not be affected.

@thomasf
Copy link
Contributor Author

thomasf commented Nov 27, 2012

Closing my reqest, not that important as it is mostly a matter of taste anyway.

@thomasf thomasf closed this Nov 27, 2012
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.

None yet

2 participants