Skip to content

Commit 948bdc4

Browse files
committed
add update script
1 parent 3c57d70 commit 948bdc4

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

ent-branches.txt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
lab503a-signals
2+
lab503b-change-detection
3+
lab503b.1-local-change-detection
4+
lab503c-computed-effects
5+
lab503c0-refactor-delay
6+
lab503d-computed2
7+
lab503d-rxjs-interop
8+
lab503e-rxjs-interop
9+
lab503f-signal-inputs
10+
lab504-signal-store-starter
11+
lab504a-signal-store
12+
lab504b-rx-method
13+
lab504c-entities
14+
lab504d-normalization
15+
lab504e-custom
16+
lab504f-custom2
17+
lab504g-adv-signal-store-starter
18+
lab504h-with-data-service
19+
lab504i-with-data-service-collection
20+
lab504j-redux
21+
lab504z-experiment-data-service
22+
lab505-ngrx-starter
23+
lab505a-ngrx-store
24+
lab505b-ngrx-selectors
25+
lab505c-ngrx-normalization
26+
lab505d-ngrx-selector-param
27+
lab505e-custom
28+
lab505e-ngrx-custom-provide-fn
29+
lab505e-ngrx-effects
30+
lab505e1-ngrx-effects-error-handling
31+
lab505f-custom2
32+
lab505f-ngrx-facade
33+
lab506-performance-starter
34+
lab507-rxjs-starter
35+
lab512-nf-starter
36+
lab512a-loading-nf
37+
lab512b-nf-sharing
38+
lab512c-nf-routes
39+
lab512d-nf-routes-solution
40+
lab512e-nf-loading-components
41+
lab512f-nf-multi-starter
42+
lab512g-nf-multi-solution
43+
lab512h-nf-angular-elements

update.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
BRANCH_LIST="ent-branches.txt"
6+
FIXED_COMMIT="a3dd3b8874e71a0396" # der zu cherry-pickende Commit
7+
8+
while read -r BRANCH; do
9+
if [[ -z "$BRANCH" ]]; then
10+
continue
11+
fi
12+
13+
echo "===> Wechsel zu $BRANCH"
14+
git checkout "$BRANCH"
15+
16+
# Prüfen, ob Commit schon im Branch enthalten ist
17+
if git cherry "$BRANCH" "$FIXED_COMMIT" | grep -q '^-'; then
18+
echo "⏩ Commit bereits in $BRANCH – überspringe."
19+
continue
20+
fi
21+
22+
echo "===> Cherry-Pick von $FIXED_COMMIT"
23+
git cherry-pick "$FIXED_COMMIT"
24+
25+
done < "$BRANCH_LIST"
26+
27+
echo "✅ Alle Cherry-Picks abgeschlossen."

0 commit comments

Comments
 (0)