File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,20 @@ set -eux;
2121
2222cd " $( git rev-parse --show-toplevel) " ;
2323
24+ # Files for which we are taking full control have any incoming changes
25+ # discarded.
2426OVERWRITING=(" .github/workflows/go.yml" " .golangci.yml" )
2527git checkout --ours -- " ${OVERWRITING[@]} " ;
2628git add " ${OVERWRITING[@]} " ;
2729
30+ # Files deleted by geth are deleted locally too because they're guaranteed to
31+ # not be our code due to the libevm naming convention.
2832git status | grep " deleted by them" | awk ' {print $NF}' | xargs -r git rm || echo " No files deleted upstream" ;
2933
34+ # There are a number of conflicts due to the module renaming, which can be
35+ # resolved mechanically by accepting the incoming changes. This is a blunt
36+ # first-pass approach, accepting entire files. It will start an interactive
37+ # terminal UI with instructions.
3038cd ./libevm/tooling/merge;
3139ACCEPTING=$( git status | grep " both modified" | awk ' {print $NF}' | grep -P " \.go$" | go run . resolve theirs) ;
3240if [[ -n " ${ACCEPTING[*]// } " ]]; then # $x// removes whitespace
You can’t perform that action at this time.
0 commit comments