Michael schreef op 27-08-2016 0:29:
So, I'm realizing that there's some basic stuff I just don't know.

I want to check out a copy of the current OBS studio. I don't want to
contribute, I just want to compile the latest dev version (has native
support for Jack audio routing)

OBS's "how to install" mentions this:

git clone --recursive https://github.com/jp9000/obs-studio.git

Now, looking up the manual for clone says that "recursive" is about
getting the sub modules as well -- and right away, I don't have the
slightest idea of what sub modules are or how they work.

Not knowing much but....

Submodules are linked into the main tree at a certain point.

Recursively getting them would probably just set up the entire project but get it from different sources.

At the same time, I don't want the whole project and history -- I just
want to compile the current master.

Usually when you clone a repository you get all of the data anway, even if you just check out the master branch, it contains most of the data of the entire repository (often) because Git is going to recreate that branch based on all of the commits that contributed to it.

So most branches you will find of any repo don't actually add that much to the size, since they all share the same commits (or a lot of them anyway).

What's the best way? What is a "shallow" repository (I saw that
mentioned from --depth and --shallow-submodules)

A shallow clone appears to cut back on the history that you will download and give a minimum amount of data that will still reconstruct the files. Or perhaps, you get only a single commit for each file; in which all of the preceding commits have just been combined, leaving only a single version and not having all the data with all the changes thet led up to it.

It seems to be exactly what you want?

Sometimes you must just plow ahead and do what it seems to be like that what you want to be done will be exactly the thing you are looking at ;-).

Just do it man. It seems to be exaclty what you need ;-).

You received this message because you are subscribed to the Google Groups "Git for 
human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to