From ddb2aea2d5bc1b15f8541a71b055952357b1fe20 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Sun, 7 Jan 2024 16:14:11 +0100 Subject: [PATCH] Adapt doc to merge of binaries into SWT's main repo using Git LFS Part of https://github.com/eclipse-platform/eclipse.platform.swt.binaries/issues/2 --- git.php | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/git.php b/git.php index 13c29ea..9ed3f59 100755 --- a/git.php +++ b/git.php @@ -7,19 +7,23 @@

Using SWT from Git

Intro

-

As part of the Eclipse Git migration, SWT has moved all of its CVS projects into 2 Git repos - one for sources and one for binaries. +

As part of the Eclipse Git migration, SWT first has moved all of its CVS projects into 2 Git repos - one for sources and one for binaries. +But nowadays the binaries are also stored in the sources repository using Git Large File Storage (LFS) so that only one SWT Git repository exists.
For those new to the Git world, there are many resources available online that can provide an intro to Git. Some recommended ones:

Git Web View

-

SWT lives at GitHub. Both SWT repos can be viewed online at: +

SWT lives at GitHub. The SWT repo can be viewed online at:

+The eclipse.platform.swt.binaries.git repository is now obsolete and effectively archived. +

Cloning the SWT repos

Anonymous git access to the SWT repositories can be obtained through either http or git protocols. To clone the SWT repos from the command line: @@ -31,15 +35,22 @@

Using EGit

-

While it is possible to use git only from the command line to develop SWT, it is recommended to use EGit to allow you to perform all git operations from within Eclipse. Here is a quick guide to help you -get set up (see also Platform-releng/Git Workflows page for more workflow hints.).

+

While it is possible to use git (with git-lfs installed) only from the command line to develop SWT, it is recommended to use EGit to allow you to perform all git operations from within Eclipse. +Here is a quick guide to help you get set up (see also Platform-releng/Git Workflows page for more workflow hints.).

-The EGit User guide can be found here. +The EGit User guide and especially its section about EGit's LFS support provide general help with EGit.

-

Installing EGit

+

Installing EGit with LFS Support

-You can install EGit from Latest Eclipse Simultaneous Release, it's already available. From within Eclipse, you can select Help>Install New Software... and then select the -2020-03 (or newer) site from the 'Work With' combo box. Select Eclipse EGit from underneath the 'Collaboration' section and install. +You can install EGit and its LFS Support from Latest Eclipse Simultaneous Release, it's already available. +From within Eclipse, you can select Help>Install New Software... and then select the 2020-03 (or newer) site from the 'Work With' combo box. +From underneath the 'Collaboration' section and install +

+ +After EGit with LFS Support is installed make sure LFS support is enabled, ideally globally.

Getting the Source