Skip to content

Commit e7b24c3

Browse files
Kevin Willforddscho
Kevin Willford
authored andcommitted
Merge pull request #98 Add explanation of branches and using forks
BRANCHES.md: Add explanation of branches and using forks
2 parents 2f54b0c + 04fd408 commit e7b24c3

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

BRANCHES.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Branches used in this repo
2+
==========================
3+
4+
The document explains the branching structure that we are using in the VFSForGit repository as well as the forking strategy that we have adopted for contributing.
5+
6+
Repo Branches
7+
-------------
8+
9+
1. master
10+
11+
This will track the Git for Windows repository master branch
12+
13+
2. vfs
14+
15+
Would like to use this branch as an ever-green branch that continually rebases the VFSForGit changes onto a windows ever-green branch that is on the core/master, so that we can detect when the patches for VFSForGit have issues or if we have a new version patches sent upstream git we can regenerate this branch.
16+
17+
3. vs/master
18+
19+
This tracks with the Git for Windows repository vs/master branch and are the generated files for using a Visual Studio solution.
20+
21+
4. vfs-#
22+
23+
These branches are used to track the specific version that match Git for Windows with the VFSForGit specific patches on top. When a new version of Git for Windows is released, the VFSForGit patches will be rebased on that windows version and a new gvfs-# branch created to create pull requests against.
24+
25+
#### Examples
26+
27+
```
28+
vfs-2.20.0
29+
vfs-2.20.1
30+
```
31+
32+
The versions of git for VFSForGit are based on the Git for Windows versions. v2.20.0.vfs.1 will correspond with the v2.20.0.windows.1 with the VFSForGit specific patches applied to the windows version.
33+
34+
Tags
35+
----
36+
37+
We are using annotated tags to build the version number for git. The build will look back through the commit history to find the first tag matching `v[0-9]*vfs*` and build the git version number using that tag.
38+
39+
Forking
40+
-------
41+
42+
A personal fork of this repository and a branch in that repository should be used for development.
43+
44+
These branches should be based on the latest vfs-# branch. If there are work in progress pull requests that you have based on a previous version branch when a new version branch is created, you will need to move your patches to the new branch to get them in that latest version.
45+
46+
#### Example
47+
48+
```
49+
git clone <personal fork repo URL>
50+
git remote add ms https://github.com/Microsoft/git.git
51+
git checkout -b my-changes ms/vfs-2.20.0 --no-track
52+
git push -fu origin HEAD
53+
```

0 commit comments

Comments
 (0)