Skip to content

Commit 101017f

Browse files
authored
Merge pull request #1 from darkpatternsdigital/rename-upstreams-dependencies
Rename upstreams dependencies
2 parents cc20b04 + d15df1d commit 101017f

File tree

123 files changed

+1459
-1455
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+1459
-1455
lines changed

README.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Git shortcuts for implementing the scalable git branching model
22

3+
The Scalable Git Branching Model has recently been updated; see the new
4+
terminology in [A scalable Git branching model,
5+
Revisited](https://dekrey.net/articles/scalable-git-branching-model-revisited/).
6+
37
## Prerequisites
48

59
- Powershell Core (7+)
@@ -25,34 +29,34 @@ Note: if you have an older version installed, such as .NET 7, you can [install a
2529

2630
Relative paths work, too. To clone and run, you may use the following commands:
2731

28-
git clone https://github.com/PrincipleStudios/scalable-git-branching-tools.git ../scalable-git-branching-tools
32+
git clone https://github.com/DarkPatternsDigital/scalable-git-branching-tools.git ../scalable-git-branching-tools
2933
../scalable-git-branching-tools/init.ps1
3034

3135
## Commands
3236

33-
[`git tool-update`](./docs/tool-update.md)
37+
[`git tool-update`](./docs/tool-update.md) - Attempts to update these tools
3438

35-
[`git tool-config`](./docs/tool-config.md)
39+
[`git tool-config`](./docs/tool-config.md) - Configures these tools
3640

37-
[`git new`](./docs/new.md)
41+
[`git new`](./docs/new.md) - Create a new branch with tracked dependencies
3842

39-
[`git pull-upstream`](./docs/pull-upstream.md)
43+
[`git pull-deps`](./docs/pull-deps.md) - Pull dependencies into your current branch
4044

41-
[`git show-downstream`](./docs/show-downstream.md)
45+
[`git show-dependants`](./docs/show-dependants.md) - Shows dependants of the current branch
4246

43-
[`git show-upstream`](./docs/show-upstream.md)
47+
[`git show-deps`](./docs/show-deps.md) - Shows dependencies of the current branch
4448

45-
[`git add-upstream`](./docs/add-upstream.md)
49+
[`git add-deps`](./docs/add-deps.md) - Adds one or more dependencies to the current branch
4650

47-
[`git rc`](./docs/rc.md)
51+
[`git rc`](./docs/rc.md) - Creates a release candidate out of one or more dependencies
4852

49-
[`git rebuild-rc`](./docs/rebuild-rc.md)
53+
[`git rebuild-rc`](./docs/rebuild-rc.md) - Recreates a release candidate, modifying its dependencies.
5054

51-
[`git verify-updated`](./docs/verify-updated.md)
55+
[`git verify-updated`](./docs/verify-updated.md) - Verifies if the current branch is up-to-date wit its dependencies
5256

53-
[`git refactor-upstream`](./docs/refactor-upstream.md)
57+
[`git refactor-deps`](./docs/refactor-deps.md) - Rewrites the dependencies tree as directed
5458

55-
[`git release`](./docs/release.md)
59+
[`git release`](./docs/release.md) - Releases and cleans up branches
5660

5761
## Development
5862

adr/01-principles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ Tools should be written with the following in mind:
6666

6767
[scalable-git]: https://dekrey.net/articles/scaled-git-flow/
6868
[principle-scalable-git]: https://www.principlestudios.com/article/a-scalable-git-branching-model/
69-
[principle-tools-branching]: https://principle.tools/branching/
69+
[principle-tools-branching]: https://principle.tools/branching/

adr/02-code-organization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ Under this methodology, the `git new` command would have the basic outline:
121121
5. Finalize actions
122122
- `Invoke-FinalizeAction`
123123
- A single `git push` would set `_upstream` and create the new branch
124-
- Checkout the new branch
124+
- Checkout the new branch

demos/_setup-existing.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ try {
88

99
/git-tools/init.ps1
1010

11-
git add-upstream main -target feature/add-item-1
12-
git add-upstream main -target feature/add-item-2
13-
git add-upstream main -target feature/change-existing-item-A
14-
git add-upstream main -target feature/change-existing-item-B
15-
git add-upstream feature/add-item-1 -target feature/subfeature
11+
git add-deps main -target feature/add-item-1
12+
git add-deps main -target feature/add-item-2
13+
git add-deps main -target feature/change-existing-item-A
14+
git add-deps main -target feature/change-existing-item-B
15+
git add-deps feature/add-item-1 -target feature/subfeature
1616

1717
} finally {
1818
Pop-Location

demos/demo-local-cd.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if ((git branch --show-current) -ne 'feature/PS-1') {
2222
throw 'Branch name did not match expected';
2323
}
2424

25-
git rc rc/test -u feature/add-item-1,feature/add-item-2
25+
git rc rc/test -d feature/add-item-1,feature/add-item-2
2626
ThrowOnNativeFalure
2727

2828
if ((git branch --show-current) -ne 'feature/PS-1') {

demos/demo-local-with-space.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if ((git branch --show-current) -ne 'feature/PS-1') {
2525
throw 'Branch name did not match expected';
2626
}
2727

28-
git rc rc/test -u feature/add-item-1,feature/add-item-2
28+
git rc rc/test -d feature/add-item-1,feature/add-item-2
2929
ThrowOnNativeFalure
3030

3131
if ((git branch --show-current) -ne 'feature/PS-1') {

demos/demo-local.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if ((git branch --show-current) -ne 'feature/PS-1') {
2222
throw 'Branch name did not match expected';
2323
}
2424

25-
git rc rc/test -u feature/add-item-1,feature/add-item-2
25+
git rc rc/test -d feature/add-item-1,feature/add-item-2
2626
ThrowOnNativeFalure
2727

2828
if ((git branch --show-current) -ne 'feature/PS-1') {

demos/demo-remote-release.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ git clone ./origin local
1313
cd local
1414
/git-tools/init.ps1
1515

16-
git new feature/PS-1 -u feature/add-item-1
16+
git new feature/PS-1 -d feature/add-item-1
1717
ThrowOnNativeFalure
1818

19-
git rc rc/test -u feature/subfeature,feature/add-item-2
19+
git rc rc/test -d feature/subfeature,feature/add-item-2
2020
ThrowOnNativeFalure
2121

2222
git verify-updated rc/test

demos/demo-remote-without-config.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ if ((git branch --show-current) -ne 'feature/PS-1') {
2424
throw 'Branch name did not match expected';
2525
}
2626

27-
$upstreamOfNewFeature = [string[]](git show-upstream)
28-
if ($upstreamOfNewFeature -notcontains 'main') {
29-
throw "Expected main to be upstream of the current branch; found: $(ConvertTo-Json $upstreamOfNewFeature)"
27+
$dependencyOfNewFeature = [string[]](git show-deps)
28+
if ($dependencyOfNewFeature -notcontains 'main') {
29+
throw "Expected main to be dependency of the current branch; found: $(ConvertTo-Json $dependencyOfNewFeature)"
3030
}
3131

32-
git rc rc/test -u feature/add-item-1,feature/add-item-2
32+
git rc rc/test -d feature/add-item-1,feature/add-item-2
3333
ThrowOnNativeFalure
3434

3535
if ((git branch --show-current) -ne 'feature/PS-1') {

demos/demo-remote.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ git clone ./origin local
1313
cd local
1414
/git-tools/init.ps1
1515

16-
git new feature/PS-1 -u feature/add-item-1
16+
git new feature/PS-1 -d feature/add-item-1
1717
ThrowOnNativeFalure
1818

1919
if ((git rev-parse origin/feature/add-item-1) -ne (git rev-parse HEAD)) {
@@ -24,19 +24,19 @@ if ((git branch --show-current) -ne 'feature/PS-1') {
2424
throw 'Branch name did not match expected';
2525
}
2626

27-
$upstreamOfNewFeature = [string[]](git show-upstream -recurse)
28-
if ($upstreamOfNewFeature -notcontains 'main') {
29-
throw "Expected main to be upstream of the current branch; found: $(ConvertTo-Json $upstreamOfNewFeature)"
27+
$dependencyOfNewFeature = [string[]](git show-deps -recurse)
28+
if ($dependencyOfNewFeature -notcontains 'main') {
29+
throw "Expected main to be dependency of the current branch; found: $(ConvertTo-Json $dependencyOfNewFeature)"
3030
}
3131

32-
git rc rc/test -u feature/add-item-1,feature/add-item-2
32+
git rc rc/test -d feature/add-item-1,feature/add-item-2
3333
ThrowOnNativeFalure
3434

3535
if ((git branch --show-current) -ne 'feature/PS-1') {
3636
throw 'Branch name should not have changed';
3737
}
3838

39-
git pull-upstream rc/test
39+
git pull-deps rc/test
4040
ThrowOnNativeFalure
4141

4242
git verify-updated rc/test

0 commit comments

Comments
 (0)