forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.hemi
74 lines (57 loc) · 1.46 KB
/
README.hemi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Hemi Optimism Fork
This branch contains the Optimism code with changes for Hemi Network.
## Updating
In order to resync against upstream, the following can be performed:
```
git checkout develop
git fetch https://github.com/ethereum-optimism/optimism develop
git rebase FETCH_HEAD
git checkout master
git fetch https://github.com/ethereum-optimism/optimism master
git rebase FETCH_HEAD
git checkout hemi
git rebase develop
git push origin hemi develop master
```
Run submodule update if upstream changed
```
git submodule update
```
## hemi
The hemi directory is a subtree of the hemilabs/heminetwork repository.
This was added via:
```
git subtree add --squash --prefix=heminetwork [email protected]:hemilabs/heminetwork main
```
And can be updated via:
```
git subtree pull --squash --prefix=heminetwork [email protected]:hemilabs/heminetwork main
```
Every time `heminetwork` is updated run the subtree pull command and `go mod tidy`
in the optimism directory and then push the changes.
The typical workflow is:
```
git checkout hemi
git pull --ff --rebase
git submodule update
go mod tidy
```
Commit and push go mod tidy (and/or submodule update) if needed.
```
git commit -am "go mod tidy"
git push
```
Merge upstream hemi:
```
git subtree pull --squash --prefix=heminetwork [email protected]:hemilabs/heminetwork main
git submodule update
go mod tidy
```
Commit go mod tidy and/or submodule update if needed.
```
git commit -am "go mod tidy"
```
Push to origin:
```
git push
```