-
Notifications
You must be signed in to change notification settings - Fork 19
/
patch.sh
executable file
·30 lines (26 loc) · 1.33 KB
/
patch.sh
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
#!/bin/bash
set -ex
git config --global user.name "John Doe"
git config --global user.email "[email protected]"
function git_cherry_pick ()
{
refs=$1
git fetch "https://gerrit.fd.io/r/vpp" ${refs}
git cherry-pick FETCH_HEAD
git commit --amend -m "gerrit:${refs#refs/changes/*/} $(git log -1 --pretty=%B)"
}
# NSM
#git_cherry_pick refs/changes/21/33421/16 # 33421 ping: fix breakage around source address selection (sas)
git_cherry_pick refs/changes/49/33449/9 # 33449 ip: source address selection
git_cherry_pick refs/changes/56/33156/3 # 33156 ip-neighbor: GARP sent to bogus ip address # added to avoid merge conflict with 33495
git_cherry_pick refs/changes/95/33495/2 # 33495 arp: source address selection
git_cherry_pick refs/changes/13/32413/6 # 32413 wireguard: move adjacency processing from wireguard_peer to wireguard_interface
git_cherry_pick refs/changes/43/32443/7 # 32443 wireguard: use the same udp-port for multi-tunnel
git_cherry_pick refs/changes/09/32009/5 # 32009 wireguard: add ipv6 support
git_cherry_pick refs/changes/85/32685/4 # 32685 wireguard: add events for peer
git_cherry_pick refs/changes/03/33303/2 # 33303 memif: fix offset
git_cherry_pick refs/changes/20/33020/2 # 33020 l3xc: reset dpo on delete
if [ "$(ls ./patch/*.patch 2> /dev/null)" ]; then
git apply patch/*.patch
git commit -m "misc patches"
fi