Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


git dependencies

Posted on 2013-01-08
Medium Priority
Last Modified: 2013-01-22
In my attempts to make a revision number work with a library of dependencies in my code, I would rather keep a repository of dependencies that my projects link to- so that I get the following:

1- one place to put dependencies
2- all branches link to one current version of dependency.

But now I'd like to have some automatic way to know what dependency was used (like what version of boost was linked to, without copying all the dlls into each branch).

I hope I'm being clear enough.  Any ideas on how to do this automatically, correctly and easily?

Question by:thready
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Author Comment

ID: 38756332
i shouldn't say revision number- but node id checksum that git uses...
LVL 40

Expert Comment

ID: 38756439
You might want to look at git sub-modules, which allows to you include one project into another. The sub-module is pinned to a specific revision until such time that you update it via the parent, even if the original project of the sub-module has had additional changes.


I don't know of any other way that git can assist you with revision management.

Accepted Solution

thready earned 0 total points
ID: 38787436
I found a solution- I realized that if I create a new separate repository, it could always just have a single branch and contain all my external dependencies.  Then, because of the strings in project settings belonging to my code, they "point" and change the git id sufficiently for me to know exactly which versions of external libs were used in all my projects...
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 40

Expert Comment

ID: 38787531
Hey, thready. If that works for you then that's great, but did you check out sub-modules? I suspect you'll find that solves your problem in a more elegant (and possible safer) way.

Let me know if you'd like more info.

Author Comment

ID: 38787549
I did read it quickly but thought it wasn't exactly what I was looking for.  Knowing you and your great input, I'd like to ask the moderators to hold off on accepting my own solution so I can look again at sub-modules.  Very busy though- I might need till Monday!  :)

Cheers evilrix!
LVL 40

Expert Comment

ID: 38787627
Don't worry about holding off the closure, we can always change that later if need be. More important, I just wanted to make sure I'd been clear in my suggestion. It may very well be that it won't solve the problem you have but I just wanted to make sure you'd not over looked it :)

Thanks for getting back to me.

Author Closing Comment

ID: 38804765
The reason is explained with my last comment.  Not sure why we need to say it twice when accepting our own answer...

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When working in a large software development team, whether you have many developers working on the same projects, or your project is linked to other projects; it is very important that developers regularly perform "get latest" to ensure that the cha…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question