Manage git repositories inside ignored folder

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Manage git repositories inside ignored folder

Karel Hak
Hi,

In a php world, it's common practice, that dependencies of project are managed by composer. It install required repositories to some folder and write installed versions into composer.lock. So, there is no sense to commit this repositories to main repo, so they are added to .gitignore.

Problem is, that I can't access repositories installed that way thought directory tree (in Repositories). I need to add every installed repository as new project. That makes SmartGit quite unusable for our team (let say that for one real project I have to add 10-20 repositories to smartgit - for each dependency that I need to modify time to time).

So, is there any way to manage repositories, that are inside ignored folder of another repository? Some option that allows that? CTRL+3 do not help..

Example directory structure:
root/composer.json, composer.lock
root/
root/vendor
root/vendor/symfony/console -- git repository
root/vendor/tracy/tracy -- git repository
root/vendor/foo/bar -- git repository
root/vendor/.gitignore

Content of root/vendor/.gitignore
*
!.gitignore

Thanks for advices
Karel Hak
Reply | Threaded
Open this post in threaded view
|

Re: Manage git repositories inside ignored folder

SmartGit mailing list
> So, is there any way to manage repositories, that are inside ignored folder
> of another repository?

Given that the submodule has already been committed, i.e. is tracked, that will work. However there was a problem related to submodules in untracked directories, so be sure to get the latest build (either of version 6 or 6.5) using Help > Check for Latest Build.

--
Best regards,
Marc Strapetz
syntevo GmbH
http://www.syntevo.com
http://blog.syntevo.com



10/01/2014 10:20 - Karel Hak [hidden email] [smartgit] wrote:

> Hi,
>
>
> In a php world, it's common practice, that dependencies of project are
> managed by composer. It install required repositories to some folder and
> write installed versions into composer.lock. So, there is no sense to commit
> this repositories to main repo, so they are added to .gitignore.
>
>
> Problem is, that I can't access repositories installed that way thought
> directory tree (in Repositories). I need to add every installed repository
> as new project. That makes SmartGit quite unusable for our team (let say
> that for one real project I have to add 10-20 repositories to smartgit - for
> each dependency that I need to modify time to time).
>
>
> So, is there any way to manage repositories, that are inside ignored folder
> of another repository? Some option that allows that? CTRL+3 do not help..
>
>
> Example directory structure:
> root/composer.json, composer.lock
> root/
> root/vendor
> root/vendor/symfony/console -- git repository
> root/vendor/tracy/tracy -- git repository
> root/vendor/foo/bar -- git repository
> root/vendor/.gitignore
>
>
> Content of root/vendor/.gitignore
> *
> !.gitignore
>
>
> Thanks for advices
> Karel Hak
>
>
>
>
>
>
> --
> View this message in context:
> http://smartgit.3668570.n2.nabble.com/Manage-git-repositories-inside-ignored-folder-tp7575299.html
> Sent from the SmartGit mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Manage git repositories inside ignored folder

SmartGit mailing list
2014-10-01 13:34 GMT+02:00 syntevo Support [hidden email] [smartgit] <
[hidden email]>:


>
>
> > So, is there any way to manage repositories, that are inside ignored
> folder
> > of another repository?
>
> Given that the submodule has already been committed, i.e. is tracked, that
> will work. However there was a problem related to submodules in untracked
> directories, so be sure to get the latest build (either of version 6 or
> 6.5) using Help > Check for Latest Build.
>
Problem is, that composer do not register submodules, it just
download/checkout required repositories in some folder. For example (from
previous message), I can see just folder root/vendor/symfony, but folder
with repository (root/vendor/symfony/console) is unaccessible through
"Repositories" sidebar (even on 6.5 preview 6 (build #4072)).


Could it be fixed somehow? It is the only one think, why I'm not using it
for commercial purposes.


Best regards
Karel Hak




>
> --
> Best regards,
> Marc Strapetz
> syntevo GmbH
> http://www.syntevo.com
> http://blog.syntevo.com
>
>
> 10/01/2014 10:20 - Karel Hak [hidden email] [smartgit] wrote:
>
> > Hi,
> >
> >
> > In a php world, it's common practice, that dependencies of project are
> > managed by composer. It install required repositories to some folder and
> > write installed versions into composer.lock. So, there is no sense to
> commit
> > this repositories to main repo, so they are added to .gitignore.
> >
> >
> > Problem is, that I can't access repositories installed that way thought
> > directory tree (in Repositories). I need to add every installed
> repository
> > as new project. That makes SmartGit quite unusable for our team (let say
> > that for one real project I have to add 10-20 repositories to smartgit -
> for
> > each dependency that I need to modify time to time).
> >
> >
> > So, is there any way to manage repositories, that are inside ignored
> folder
> > of another repository? Some option that allows that? CTRL+3 do not
> help..
> >
> >
> > Example directory structure:
> > root/composer.json, composer.lock
> > root/

> > root/vendor
> > root/vendor/symfony/console -- git repository
> > root/vendor/tracy/tracy -- git repository
> > root/vendor/foo/bar -- git repository
> > root/vendor/.gitignore
> >
> >
> > Content of root/vendor/.gitignore
> > *
> > !.gitignore
> >
> >
> > Thanks for advices
> > Karel Hak
> >
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://smartgit.3668570.n2.nabble.com/Manage-git-repositories-inside-ignored-folder-tp7575299.html
> > Sent from the SmartGit mailing list archive at Nabble.com.
> >
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Manage git repositories inside ignored folder

SmartGit mailing list
> Problem is, that composer do not register submodules, it just
> download/checkout required repositories in some folder. For example (from
> previous message), I can see just folder root/vendor/symfony, but folder
> with repository (root/vendor/symfony/console) is unaccessible through
> "Repositories" sidebar (even on 6.5 preview 6 (build #4072)).

You can use Repository > Add or Create and open the nested root directly.

--
Best regards,
Marc Strapetz
syntevo GmbH
http://www.syntevo.com
http://blog.syntevo.com



10/15/2014 12:10 - Karel Hák [hidden email] [smartgit] wrote:

> 2014-10-01 13:34 GMT+02:00 syntevo Support [hidden email] [smartgit] <
> [hidden email]>:
>
>
> >
> >
> > > So, is there any way to manage repositories, that are inside ignored
> > folder
> > > of another repository?
> >
> > Given that the submodule has already been committed, i.e. is tracked, that
> > will work. However there was a problem related to submodules in untracked
> > directories, so be sure to get the latest build (either of version 6 or
> > 6.5) using Help > Check for Latest Build.
> >
> Problem is, that composer do not register submodules, it just
> download/checkout required repositories in some folder. For example (from
> previous message), I can see just folder root/vendor/symfony, but folder
> with repository (root/vendor/symfony/console) is unaccessible through
> "Repositories" sidebar (even on 6.5 preview 6 (build #4072)).
>
>
> Could it be fixed somehow? It is the only one think, why I'm not using it
> for commercial purposes.
>
>
> Best regards
> Karel Hak
>
>
>
>
> >
> > --
> > Best regards,
> > Marc Strapetz
> > syntevo GmbH
> > http://www.syntevo.com
> > http://blog.syntevo.com
> >
> >
> > 10/01/2014 10:20 - Karel Hak [hidden email] [smartgit] wrote:
> >
> > > Hi,
> > >
> > >
> > > In a php world, it's common practice, that dependencies of project are
> > > managed by composer. It install required repositories to some folder and
> > > write installed versions into composer.lock. So, there is no sense to
> > commit
> > > this repositories to main repo, so they are added to .gitignore.
> > >
> > >
> > > Problem is, that I can't access repositories installed that way thought
> > > directory tree (in Repositories). I need to add every installed
> > repository
> > > as new project. That makes SmartGit quite unusable for our team (let say
> > > that for one real project I have to add 10-20 repositories to smartgit -
> > for
> > > each dependency that I need to modify time to time).
> > >
> > >
> > > So, is there any way to manage repositories, that are inside ignored
> > folder
> > > of another repository? Some option that allows that? CTRL+3 do not
> > help..
> > >
> > >
> > > Example directory structure:
> > > root/composer.json, composer.lock
> > > root/
>
> > > root/vendor
> > > root/vendor/symfony/console -- git repository
> > > root/vendor/tracy/tracy -- git repository
> > > root/vendor/foo/bar -- git repository
> > > root/vendor/.gitignore
> > >
> > >
> > > Content of root/vendor/.gitignore
> > > *
> > > !.gitignore
> > >
> > >
> > > Thanks for advices
> > > Karel Hak
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> > http://smartgit.3668570.n2.nabble.com/Manage-git-repositories-inside-ignored-folder-tp7575299.html
> > > Sent from the SmartGit mailing list archive at Nabble.com.
> > >
> >
> >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Manage git repositories inside ignored folder

SmartGit mailing list
Yes, I can, but as I said - it's about 10-20 repositories per project, that
I need to motify from time to time. Can you imagine, how is it annoying to
manually adding so many repositories for each project? That's why I want
just access it throught Repositories sidebar.

Please think about that.

Best regards
Karel Hak

2014-10-15 12:54 GMT+02:00 syntevo Support [hidden email] [smartgit] <
[hidden email]>:

>
>
> > Problem is, that composer do not register submodules, it just
> > download/checkout required repositories in some folder. For example (from
> > previous message), I can see just folder root/vendor/symfony, but folder
> > with repository (root/vendor/symfony/console) is unaccessible through
> > "Repositories" sidebar (even on 6.5 preview 6 (build #4072)).
>
> You can use Repository > Add or Create and open the nested root directly.
>
> --
> Best regards,
> Marc Strapetz
> syntevo GmbH
> http://www.syntevo.com
> http://blog.syntevo.com
>
> 10/15/2014 12:10 - Karel Hák [hidden email] [smartgit] wrote:
>
> > 2014-10-01 13:34 GMT+02:00 syntevo Support [hidden email]
> [smartgit] <
> > [hidden email]>:
> >
> >
> > >
> > >
> > > > So, is there any way to manage repositories, that are inside ignored
> > > folder
> > > > of another repository?
> > >
> > > Given that the submodule has already been committed, i.e. is tracked,
> that
> > > will work. However there was a problem related to submodules in
> untracked
> > > directories, so be sure to get the latest build (either of version 6 or
> > > 6.5) using Help > Check for Latest Build.
> > >
> > Problem is, that composer do not register submodules, it just
> > download/checkout required repositories in some folder. For example (from
> > previous message), I can see just folder root/vendor/symfony, but folder
> > with repository (root/vendor/symfony/console) is unaccessible through
> > "Repositories" sidebar (even on 6.5 preview 6 (build #4072)).
> >
> >
> > Could it be fixed somehow? It is the only one think, why I'm not using it
> > for commercial purposes.
> >
> >
> > Best regards
> > Karel Hak
> >
> >
> >
> >
> > >
> > > --
> > > Best regards,
> > > Marc Strapetz
> > > syntevo GmbH
> > > http://www.syntevo.com
> > > http://blog.syntevo.com
> > >
> > >
> > > 10/01/2014 10:20 - Karel Hak [hidden email] [smartgit] wrote:
> > >
> > > > Hi,
> > > >
> > > >
> > > > In a php world, it's common practice, that dependencies of project
> are
> > > > managed by composer. It install required repositories to some folder
> and
> > > > write installed versions into composer.lock. So, there is no sense to
> > > commit
> > > > this repositories to main repo, so they are added to .gitignore.
> > > >
> > > >
> > > > Problem is, that I can't access repositories installed that way
> thought
> > > > directory tree (in Repositories). I need to add every installed
> > > repository
> > > > as new project. That makes SmartGit quite unusable for our team (let
> say
> > > > that for one real project I have to add 10-20 repositories to
> smartgit -
> > > for
> > > > each dependency that I need to modify time to time).
> > > >
> > > >
> > > > So, is there any way to manage repositories, that are inside ignored
> > > folder
> > > > of another repository? Some option that allows that? CTRL+3 do not
> > > help..
> > > >
> > > >
> > > > Example directory structure:
> > > > root/composer.json, composer.lock
> > > > root/
> >
> > > > root/vendor
> > > > root/vendor/symfony/console -- git repository
> > > > root/vendor/tracy/tracy -- git repository
> > > > root/vendor/foo/bar -- git repository
> > > > root/vendor/.gitignore
> > > >
> > > >
> > > > Content of root/vendor/.gitignore
> > > > *
> > > > !.gitignore
> > > >
> > > >
> > > > Thanks for advices
> > > > Karel Hak
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > >
> http://smartgit.3668570.n2.nabble.com/Manage-git-repositories-inside-ignored-folder-tp7575299.html
> > > > Sent from the SmartGit mailing list archive at Nabble.com.
> > > >
> > >
> > >
> > >
> >
>
>  
>
Reply | Threaded
Open this post in threaded view
|

Re: Manage git repositories inside ignored folder

WORMSS
You can even drag/drop them in?
Reply | Threaded
Open this post in threaded view
|

Re: Manage git repositories inside ignored folder

SmartGit mailing list
In reply to this post by SmartGit mailing list
> Yes, I can, but as I said - it's about 10-20 repositories per project, that
> I need to motify from time to time. Can you imagine, how is it annoying to
> manually adding so many repositories for each project? That's why I want
> just access it throught Repositories sidebar.

Sorry I missed the big picture. SmartGit will never scan into ignored directories for performance reasons and we probably won't change that. You write that composer manages dependencies -- in this case, why do you bother about these submodules from a version control perspective? If there is something bother, i.e. if there is some relation between parent repository and your ignored submodules, I'd really doubt whether it's a good idea to ignore them. Just some examples:
 
- What happens when adding a tag? Who will record the current dependencies?

- What happens when checking out a different branch or when undoing a commit in the parent repository which had also required changes in the submodule? Will submodules be adjusted properly?

AFAIU all these operations won't work properly across your repositories, if you don't use .gitmodules.

--
Best regards,
Marc Strapetz
syntevo GmbH
http://www.syntevo.com
http://blog.syntevo.com


10/15/2014 13:10 - Karel Hák [hidden email] [smartgit] wrote:

> Yes, I can, but as I said - it's about 10-20 repositories per project, that
> I need to motify from time to time. Can you imagine, how is it annoying to
> manually adding so many repositories for each project? That's why I want
> just access it throught Repositories sidebar.
>
> Please think about that.
>
> Best regards
> Karel Hak
>
> 2014-10-15 12:54 GMT+02:00 syntevo Support [hidden email] [smartgit] <
> [hidden email]>:
>
> >
> >
> > > Problem is, that composer do not register submodules, it just
> > > download/checkout required repositories in some folder. For example (from
> > > previous message), I can see just folder root/vendor/symfony, but folder
> > > with repository (root/vendor/symfony/console) is unaccessible through
> > > "Repositories" sidebar (even on 6.5 preview 6 (build #4072)).
> >
> > You can use Repository > Add or Create and open the nested root directly.
> >
> > --
> > Best regards,
> > Marc Strapetz
> > syntevo GmbH
> > http://www.syntevo.com
> > http://blog.syntevo.com
> >
> > 10/15/2014 12:10 - Karel Hák [hidden email] [smartgit] wrote:
> >
> > > 2014-10-01 13:34 GMT+02:00 syntevo Support [hidden email]
> > [smartgit] <
> > > [hidden email]>:
> > >
> > >
> > > >
> > > >
> > > > > So, is there any way to manage repositories, that are inside ignored
> > > > folder
> > > > > of another repository?
> > > >
> > > > Given that the submodule has already been committed, i.e. is tracked,
> > that
> > > > will work. However there was a problem related to submodules in
> > untracked
> > > > directories, so be sure to get the latest build (either of version 6 or
> > > > 6.5) using Help > Check for Latest Build.
> > > >
> > > Problem is, that composer do not register submodules, it just
> > > download/checkout required repositories in some folder. For example (from
> > > previous message), I can see just folder root/vendor/symfony, but folder
> > > with repository (root/vendor/symfony/console) is unaccessible through
> > > "Repositories" sidebar (even on 6.5 preview 6 (build #4072)).
> > >
> > >
> > > Could it be fixed somehow? It is the only one think, why I'm not using it
> > > for commercial purposes.
> > >
> > >
> > > Best regards
> > > Karel Hak
> > >
> > >
> > >
> > >
> > > >
> > > > --
> > > > Best regards,
> > > > Marc Strapetz
> > > > syntevo GmbH
> > > > http://www.syntevo.com
> > > > http://blog.syntevo.com
> > > >
> > > >
> > > > 10/01/2014 10:20 - Karel Hak [hidden email] [smartgit] wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > >
> > > > > In a php world, it's common practice, that dependencies of project
> > are
> > > > > managed by composer. It install required repositories to some folder
> > and
> > > > > write installed versions into composer.lock. So, there is no sense to
> > > > commit
> > > > > this repositories to main repo, so they are added to .gitignore.
> > > > >
> > > > >
> > > > > Problem is, that I can't access repositories installed that way
> > thought
> > > > > directory tree (in Repositories). I need to add every installed
> > > > repository
> > > > > as new project. That makes SmartGit quite unusable for our team (let
> > say
> > > > > that for one real project I have to add 10-20 repositories to
> > smartgit -
> > > > for
> > > > > each dependency that I need to modify time to time).
> > > > >
> > > > >
> > > > > So, is there any way to manage repositories, that are inside ignored
> > > > folder
> > > > > of another repository? Some option that allows that? CTRL+3 do not
> > > > help..
> > > > >
> > > > >
> > > > > Example directory structure:
> > > > > root/composer.json, composer.lock
> > > > > root/
> > >
> > > > > root/vendor
> > > > > root/vendor/symfony/console -- git repository
> > > > > root/vendor/tracy/tracy -- git repository
> > > > > root/vendor/foo/bar -- git repository
> > > > > root/vendor/.gitignore
> > > > >
> > > > >
> > > > > Content of root/vendor/.gitignore
> > > > > *
> > > > > !.gitignore
> > > > >
> > > > >
> > > > > Thanks for advices
> > > > > Karel Hak
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > > >
> > > >
> > http://smartgit.3668570.n2.nabble.com/Manage-git-repositories-inside-ignored-folder-tp7575299.html
> > > > > Sent from the SmartGit mailing list archive at Nabble.com.
> > > > >
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Manage git repositories inside ignored folder

SmartGit mailing list
Our workflow is following: When changes at dependencies are done, thay are
pushed and than "composer update some/dependency" is executed -
composer.lock is updated and commited in main repo. In our company we have
never had problem with that, but I'm understand that it can lead to
inconsistent state. But from my point of view, current behaviour is buggy -
even If I have selected "show files from subdirectories" and "show ignored
files", no file is founded.

Finall decision is of course on you.

Best regards
Karel Hak

2014-10-15 13:23 GMT+02:00 syntevo Support [hidden email] [smartgit] <
[hidden email]>:

>
>
> > Yes, I can, but as I said - it's about 10-20 repositories per project,
> that
> > I need to motify from time to time. Can you imagine, how is it annoying
> to
> > manually adding so many repositories for each project? That's why I want
> > just access it throught Repositories sidebar.
>
> Sorry I missed the big picture. SmartGit will never scan into ignored
> directories for performance reasons and we probably won't change that. You
> write that composer manages dependencies -- in this case, why do you bother
> about these submodules from a version control perspective? If there is
> something bother, i.e. if there is some relation between parent repository
> and your ignored submodules, I'd really doubt whether it's a good idea to
> ignore them. Just some examples:
>
> - What happens when adding a tag? Who will record the current dependencies?
>
> - What happens when checking out a different branch or when undoing a
> commit in the parent repository which had also required changes in the
> submodule? Will submodules be adjusted properly?
>
> AFAIU all these operations won't work properly across your repositories,
> if you don't use .gitmodules.
>
> --
> Best regards,
> Marc Strapetz
> syntevo GmbH
> http://www.syntevo.com
> http://blog.syntevo.com
>
> 10/15/2014 13:10 - Karel Hák [hidden email] [smartgit] wrote:
>
> > Yes, I can, but as I said - it's about 10-20 repositories per project,
> that
> > I need to motify from time to time. Can you imagine, how is it annoying
> to
> > manually adding so many repositories for each project? That's why I want
> > just access it throught Repositories sidebar.
> >
> > Please think about that.
> >
> > Best regards
> > Karel Hak
> >
> > 2014-10-15 12:54 GMT+02:00 syntevo Support [hidden email]
> [smartgit] <
> > [hidden email]>:
> >
> > >
> > >
> > > > Problem is, that composer do not register submodules, it just
> > > > download/checkout required repositories in some folder. For example
> (from
> > > > previous message), I can see just folder root/vendor/symfony, but
> folder
> > > > with repository (root/vendor/symfony/console) is unaccessible through
> > > > "Repositories" sidebar (even on 6.5 preview 6 (build #4072)).
> > >
> > > You can use Repository > Add or Create and open the nested root
> directly.
> > >
> > > --
> > > Best regards,
> > > Marc Strapetz
> > > syntevo GmbH
> > > http://www.syntevo.com
> > > http://blog.syntevo.com
> > >
> > > 10/15/2014 12:10 - Karel Hák [hidden email] [smartgit] wrote:
> > >
> > > > 2014-10-01 13:34 GMT+02:00 syntevo Support [hidden email]
> > > [smartgit] <
> > > > [hidden email]>:
> > > >
> > > >
> > > > >
> > > > >
> > > > > > So, is there any way to manage repositories, that are inside
> ignored
> > > > > folder
> > > > > > of another repository?
> > > > >
> > > > > Given that the submodule has already been committed, i.e. is
> tracked,
> > > that
> > > > > will work. However there was a problem related to submodules in
> > > untracked
> > > > > directories, so be sure to get the latest build (either of version
> 6 or
> > > > > 6.5) using Help > Check for Latest Build.
> > > > >
> > > > Problem is, that composer do not register submodules, it just
> > > > download/checkout required repositories in some folder. For example
> (from
> > > > previous message), I can see just folder root/vendor/symfony, but
> folder
> > > > with repository (root/vendor/symfony/console) is unaccessible through
> > > > "Repositories" sidebar (even on 6.5 preview 6 (build #4072)).
> > > >
> > > >
> > > > Could it be fixed somehow? It is the only one think, why I'm not
> using it
> > > > for commercial purposes.
> > > >
> > > >
> > > > Best regards
> > > > Karel Hak
> > > >
> > > >
> > > >
> > > >
> > > > >
> > > > > --
> > > > > Best regards,
> > > > > Marc Strapetz
> > > > > syntevo GmbH
> > > > > http://www.syntevo.com
> > > > > http://blog.syntevo.com
> > > > >
> > > > >
> > > > > 10/01/2014 10:20 - Karel Hak [hidden email] [smartgit] wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > >
> > > > > > In a php world, it's common practice, that dependencies of
> project
> > > are
> > > > > > managed by composer. It install required repositories to some
> folder
> > > and
> > > > > > write installed versions into composer.lock. So, there is no
> sense to
> > > > > commit
> > > > > > this repositories to main repo, so they are added to .gitignore.
> > > > > >
> > > > > >
> > > > > > Problem is, that I can't access repositories installed that way
> > > thought
> > > > > > directory tree (in Repositories). I need to add every installed
> > > > > repository
> > > > > > as new project. That makes SmartGit quite unusable for our team
> (let
> > > say
> > > > > > that for one real project I have to add 10-20 repositories to
> > > smartgit -
> > > > > for
> > > > > > each dependency that I need to modify time to time).
> > > > > >
> > > > > >
> > > > > > So, is there any way to manage repositories, that are inside
> ignored
> > > > > folder
> > > > > > of another repository? Some option that allows that? CTRL+3 do
> not
> > > > > help..
> > > > > >
> > > > > >
> > > > > > Example directory structure:
> > > > > > root/composer.json, composer.lock
> > > > > > root/
> > > >
> > > > > > root/vendor
> > > > > > root/vendor/symfony/console -- git repository
> > > > > > root/vendor/tracy/tracy -- git repository
> > > > > > root/vendor/foo/bar -- git repository
> > > > > > root/vendor/.gitignore
> > > > > >
> > > > > >
> > > > > > Content of root/vendor/.gitignore
> > > > > > *
> > > > > > !.gitignore
> > > > > >
> > > > > >
> > > > > > Thanks for advices
> > > > > > Karel Hak
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > View this message in context:
> > > > > >
> > > > >
> > >
> http://smartgit.3668570.n2.nabble.com/Manage-git-repositories-inside-ignored-folder-tp7575299.html
> > > > > > Sent from the SmartGit mailing list archive at Nabble.com.
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> >
>
>  
>
Reply | Threaded
Open this post in threaded view
|

Re: Manage git repositories inside ignored folder

SmartGit mailing list
> But from my point of view, current behaviour is buggy -
> even If I have selected "show files from subdirectories" and "show ignored
> files", no file is founded.

Even if we would scan into ignored directories, still we wouldn't show/scan into nested roots, as this usually does not make sense. You are the first one asking for this, btw.

--
Best regards,
Marc Strapetz
syntevo GmbH
http://www.syntevo.com
http://blog.syntevo.com


10/15/2014 14:00 - Karel Hák [hidden email] [smartgit] wrote:

> Our workflow is following: When changes at dependencies are done, thay are
> pushed and than "composer update some/dependency" is executed -
> composer.lock is updated and commited in main repo. In our company we have
> never had problem with that, but I'm understand that it can lead to
> inconsistent state. But from my point of view, current behaviour is buggy -
> even If I have selected "show files from subdirectories" and "show ignored
> files", no file is founded.
>
> Finall decision is of course on you.
>
> Best regards
> Karel Hak
>
> 2014-10-15 13:23 GMT+02:00 syntevo Support [hidden email] [smartgit] <
> [hidden email]>:
>
> >
> >
> > > Yes, I can, but as I said - it's about 10-20 repositories per project,
> > that
> > > I need to motify from time to time. Can you imagine, how is it annoying
> > to
> > > manually adding so many repositories for each project? That's why I want
> > > just access it throught Repositories sidebar.
> >
> > Sorry I missed the big picture. SmartGit will never scan into ignored
> > directories for performance reasons and we probably won't change that. You
> > write that composer manages dependencies -- in this case, why do you bother
> > about these submodules from a version control perspective? If there is
> > something bother, i.e. if there is some relation between parent repository
> > and your ignored submodules, I'd really doubt whether it's a good idea to
> > ignore them. Just some examples:
> >
> > - What happens when adding a tag? Who will record the current dependencies?
> >
> > - What happens when checking out a different branch or when undoing a
> > commit in the parent repository which had also required changes in the
> > submodule? Will submodules be adjusted properly?
> >
> > AFAIU all these operations won't work properly across your repositories,
> > if you don't use .gitmodules.
> >
> > --
> > Best regards,
> > Marc Strapetz
> > syntevo GmbH
> > http://www.syntevo.com
> > http://blog.syntevo.com
> >
> > 10/15/2014 13:10 - Karel Hák [hidden email] [smartgit] wrote:
> >
> > > Yes, I can, but as I said - it's about 10-20 repositories per project,
> > that
> > > I need to motify from time to time. Can you imagine, how is it annoying
> > to
> > > manually adding so many repositories for each project? That's why I want
> > > just access it throught Repositories sidebar.
> > >
> > > Please think about that.
> > >
> > > Best regards
> > > Karel Hak
> > >
> > > 2014-10-15 12:54 GMT+02:00 syntevo Support [hidden email]
> > [smartgit] <
> > > [hidden email]>:
> > >
> > > >
> > > >
> > > > > Problem is, that composer do not register submodules, it just
> > > > > download/checkout required repositories in some folder. For example
> > (from
> > > > > previous message), I can see just folder root/vendor/symfony, but
> > folder
> > > > > with repository (root/vendor/symfony/console) is unaccessible through
> > > > > "Repositories" sidebar (even on 6.5 preview 6 (build #4072)).
> > > >
> > > > You can use Repository > Add or Create and open the nested root
> > directly.
> > > >
> > > > --
> > > > Best regards,
> > > > Marc Strapetz
> > > > syntevo GmbH
> > > > http://www.syntevo.com
> > > > http://blog.syntevo.com
> > > >
> > > > 10/15/2014 12:10 - Karel Hák [hidden email] [smartgit] wrote:
> > > >
> > > > > 2014-10-01 13:34 GMT+02:00 syntevo Support [hidden email]
> > > > [smartgit] <
> > > > > [hidden email]>:
> > > > >
> > > > >
> > > > > >
> > > > > >
> > > > > > > So, is there any way to manage repositories, that are inside
> > ignored
> > > > > > folder
> > > > > > > of another repository?
> > > > > >
> > > > > > Given that the submodule has already been committed, i.e. is
> > tracked,
> > > > that
> > > > > > will work. However there was a problem related to submodules in
> > > > untracked
> > > > > > directories, so be sure to get the latest build (either of version
> > 6 or
> > > > > > 6.5) using Help > Check for Latest Build.
> > > > > >
> > > > > Problem is, that composer do not register submodules, it just
> > > > > download/checkout required repositories in some folder. For example
> > (from
> > > > > previous message), I can see just folder root/vendor/symfony, but
> > folder
> > > > > with repository (root/vendor/symfony/console) is unaccessible through
> > > > > "Repositories" sidebar (even on 6.5 preview 6 (build #4072)).
> > > > >
> > > > >
> > > > > Could it be fixed somehow? It is the only one think, why I'm not
> > using it
> > > > > for commercial purposes.
> > > > >
> > > > >
> > > > > Best regards
> > > > > Karel Hak
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > >
> > > > > > --
> > > > > > Best regards,
> > > > > > Marc Strapetz
> > > > > > syntevo GmbH
> > > > > > http://www.syntevo.com
> > > > > > http://blog.syntevo.com
> > > > > >
> > > > > >
> > > > > > 10/01/2014 10:20 - Karel Hak [hidden email] [smartgit] wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > >
> > > > > > > In a php world, it's common practice, that dependencies of
> > project
> > > > are
> > > > > > > managed by composer. It install required repositories to some
> > folder
> > > > and
> > > > > > > write installed versions into composer.lock. So, there is no
> > sense to
> > > > > > commit
> > > > > > > this repositories to main repo, so they are added to .gitignore.
> > > > > > >
> > > > > > >
> > > > > > > Problem is, that I can't access repositories installed that way
> > > > thought
> > > > > > > directory tree (in Repositories). I need to add every installed
> > > > > > repository
> > > > > > > as new project. That makes SmartGit quite unusable for our team
> > (let
> > > > say
> > > > > > > that for one real project I have to add 10-20 repositories to
> > > > smartgit -
> > > > > > for
> > > > > > > each dependency that I need to modify time to time).
> > > > > > >
> > > > > > >
> > > > > > > So, is there any way to manage repositories, that are inside
> > ignored
> > > > > > folder
> > > > > > > of another repository? Some option that allows that? CTRL+3 do
> > not
> > > > > > help..
> > > > > > >
> > > > > > >
> > > > > > > Example directory structure:
> > > > > > > root/composer.json, composer.lock
> > > > > > > root/
> > > > >
> > > > > > > root/vendor
> > > > > > > root/vendor/symfony/console -- git repository
> > > > > > > root/vendor/tracy/tracy -- git repository
> > > > > > > root/vendor/foo/bar -- git repository
> > > > > > > root/vendor/.gitignore
> > > > > > >
> > > > > > >
> > > > > > > Content of root/vendor/.gitignore
> > > > > > > *
> > > > > > > !.gitignore
> > > > > > >
> > > > > > >
> > > > > > > Thanks for advices
> > > > > > > Karel Hak
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > View this message in context:
> > > > > > >
> > > > > >
> > > >
> > http://smartgit.3668570.n2.nabble.com/Manage-git-repositories-inside-ignored-folder-tp7575299.html
> > > > > > > Sent from the SmartGit mailing list archive at Nabble.com.
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Manage git repositories inside ignored folder

WORMSS
Just as an outside perspective.

If you have an initialised but then unstaged submodule using

$ git submodule add -f -- ./Submodule.git IgnoredFolder/Submodule
$ git reset HEAD .gitsubmodule (or click unstage)
$ git reset HEAD IgnoredFolder/Submodule (or click unstage)

If you were to run
$ git status --untracked-files --ignored

It would actually list a submodule if it was within an ignored folder compared to
$ git status --ignored

Which would only list the ignored folder. --untracked-files --ignored treats a submodule as a untracked file.
Maybe this would be an acceptable.

- Colin

PS: with --porcelain this would be treated as

?? IgnoreFolder/Submodule

but any other file would be treated as

!! IgnoreFolder/File.txt