Page 1 of 1

A quick & rough guide to getting the source from reactos.git

Posted: Wed Oct 04, 2017 1:28 pm
by oldman
SVN is no longer in use, it is still there, but is not now being updated with new commits. I have not been able to find any info yet in the Ros wiki for the new git repository. So here is a quick and rough guide to getting the latest source.

1. First download and install TortoiseGit from https://tortoisegit.org/ and also git for Windows from https://git-for-windows.github.io/

2. Choose a folder for the source tree and then within it, right click. In the drop down menu select 'Git Clone' and enter this url https://github.com/reactos/reactos.git, this will create a 'reactos' folder and download the current source tree.

I have successfully downloaded the source via this method. I tried to build a bootcd, but it failed with a sub command failure. I have not yet found out how to updated my local tree with git.

If anyone can see that this info is incorrect, then please post the correct method for downloading with git.

EDIT:
I have now undated my Layman's guide, to replace SVN with Git. Unix svn section is still to be done.

Re: A quick & rough guide to getting the source from reactos

Posted: Tue Oct 17, 2017 6:17 am
by Serge Gautherie
oldman wrote:the Ros wiki for the new git repository.
It seems to be (at least) at ReactOS Git For Dummies.

----

My question is: how to easily create a shallow local repository?

I start with

Code: Select all

git clone --branch master --depth 1 git://git.reactos.org/reactos.git/
.

Then I want all new Git history (which is not in SVN), thus rather

Code: Select all

--depth=100
currently.

Then I want to include the most recent tag (= "0.4.7-dev") so

Code: Select all

git describe
succeeds, thus rather

Code: Select all

--depth=600
currently.

Is there an easy way to find out how much of backward history I need to retrieve?
What would be the Git commands to find and retrieve the "exact" wanted history length?
And preferably with Git for Windows 2.10.0, the last version for Windows XP (hence ReactOS).

Thanks.

Re: A quick & rough guide to getting the source from reactos

Posted: Wed Oct 18, 2017 4:35 pm
by oldman
Serge Gautherie wrote: Is there an easy way to find out how much of backward history I need to retrieve ?
How to find and retrieve with Git commands ?
And preferably with Git for Windows 2.10.0, the last version for Windows XP (hence ReactOS).

Thanks.
I cannot help!

But are these two links of any use to you?

https://git-scm.com/docs/

https://git-scm.com/book/en/v2/Git-Basi ... it-History

Re: A quick & rough guide to getting the source from reactos

Posted: Wed Oct 18, 2017 5:12 pm
by Serge Gautherie
oldman wrote:are these two links of any use to you?
Not as is: which commands apply to a remote repository and how to use them for my purpose?

I rephrased my question as "What would be the Git commands to find and retrieve the "exact" wanted history length?".

---

In the meantime, I used the latest build label ("0.4.7-dev-634") as a hint.
Fttb, "--depth=634" worked good enough, though it retrieved 935 commits actually. (Better than 80+k.)
So, this is not perfect and won't scale very well after we move to "0.4.8-dev-NNN".