Jump to content

    
Sign in to follow this  
Submin

Version Control with subrepo

Recommended Posts

1 hour ago, Submin said:

There is another independent repo which depends on the first one. So in the second I can use a certain commit. Because both repos are independent, I can clone the first one wherever I need, modify it and commit. Then in the second all I need to do is to change the commit.

В чем состоит зависимость 2-го репо от 1-го? Что там такого, что мешает использовать GIT? Пока, из того, что вы говорите, не видно ничего, выходящего за рамки его возможностей. И дальнейшее только подтверждает это:
 

Quote

 

If the first repo was updated outside my project, I can test it with the latest commit or may ignore it. Is it clear?

If this idea is understood and seems to be matching my requirements, it there any tool that can be configured for such independent repo dependencies and keep track of of the changes? 

 

И какой еще tool вам нужен? Все можно сделать из командной строки (или, если уж так надо, из любого GUI, работающего поверх командной строки: TortoiseGit, SmartGit etc).

Если это не так, то извините - пока вы не показали, в чем же именно состоят ваши требования, не укладывающиеся в рамки штатного функционала Git.

Share this post


Link to post
Share on other sites

I'm sorry @Raven I used all the words I know.  The scheme with dependencies requires tuning and precision order of actions or, as I named it, tracking - that what such tool is for. Not GUI nor CLI but tracking. As the example consider keeping the commit SHA of nested repo within the upper layer repo as its part. Is it possible do manually - yes for sure. Would it convenient to do so - obviously not. Will such solution error prune - no doubt.

If my explanation is insufficient that I'm sorry again. Thank you for trying to help. 

 

Edited by Submin

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this