Skip to content

Commit 1523457

Browse files
authored
Spelling (#1419)
This pull request fixes various spelling mistakes across documentation, tests, and production code. Corrects typos in comments and function names in the Go and Rust source files. Fixes spelling errors in markdown documentation and GitHub workflow files. --------- Signed-off-by: Josh Soref <[email protected]>
1 parent 4d9de0d commit 1523457

32 files changed

+52
-52
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
CARGO_TERM_COLOR: always
11-
RUSTFLFAGS: "-D warnings"
11+
RUSTFLAGS: "-D warnings"
1212

1313
jobs:
1414
build:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@ performing many requests to the main git host.
131131

132132
## FAQ
133133

134-
See [here](https://josh-project.github.io/josh/faq.html)
134+
See the [FAQ](https://josh-project.github.io/josh/faq.html)

docs/src/contributing/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cargo test --all
1616
Due to the fact that the integration tests need additional tools and a more complex
1717
environment and due to the fact that the integration test are done using [cram](https://pypi.org/project/cram/).
1818
you will need to crate an extra environment to run these tests. To simplify the
19-
setup of the integration testing we have setup a [Nix Shell](https://nixos.org/manual/nix/stable/#chap-installation) environment which
19+
setup of the integration testing we have set up a [Nix Shell](https://nixos.org/manual/nix/stable/#chap-installation) environment which
2020
you can start by using the following command if you have installed the [Nix Shell](https://nixos.org/manual/nix/stable/#chap-installation).
2121

2222
**Attention:**

docs/src/faq.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Josh creates an alternate history that has no reference to the skipped parts. It
1212

1313
## How is it different from submodules?
1414

15-
Where git submodules are multiple, independant repos, referencing each other with SHAs, Josh supports the monorepo approach.
15+
Where git submodules are multiple, independent repos, referencing each other with SHAs, Josh supports the monorepo approach.
1616
All of the code is in one single repo which can easily be kept in sync, and Josh provides any sub folder (or in the case of workspaces, more complicated recombination of folders) as their own git repository.
1717
These repos are transparently synchronised both ways with the main monorepo.
1818
Josh can thus do more than submodules can, and is easier and faster to use.
@@ -32,8 +32,8 @@ for the same purpose.
3232
Which one is right in more advanced use cases depends on your goals: `git filter-repo` offers more flexibility and options
3333
on what kind of filtering it supports, like rewriting commit messages or even plugging arbitrary scripts into the filtering.
3434

35-
Josh uses a DSL instead of arbitary scripts for complex filters and is much more restrictive in the kind of filtering
36-
possilbe, but in exchange for those limitations offers incremental filtering as well as bidirectional operation, meaning converting changes between both the original and the filtered repos.
35+
Josh uses a DSL instead of arbitrary scripts for complex filters and is much more restrictive in the kind of filtering
36+
possible, but in exchange for those limitations offers incremental filtering as well as bidirectional operation, meaning converting changes between both the original and the filtered repos.
3737

3838
## How is Josh different from all of the above alternatives?
3939

docs/src/guide/populate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ cat > guide.c <<EOF
4141
#include "lib2.h"
4242
void main(void)
4343
{
44-
printf("Answer to life, the universe, and everyting: %d, %d, %d\n", life(), universe(), everything());
44+
printf("Answer to life, the universe, and everything: %d, %d, %d\n", life(), universe(), everything());
4545
}
4646
EOF
4747
git add .
@@ -56,7 +56,7 @@ cat > library2.md <<EOF
5656
Library2 provides the answer to the universe and everything
5757
EOF
5858
cat > guide.md <<EOF
59-
The guide project aimes to adress matters of life, universe, and everything.
59+
The guide project aims to address matters of life, universe, and everything.
6060
EOF
6161
git add .
6262
git commit -m "Add documentation"

docs/src/guide/workspaces.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ let's observe the result:
112112
{{#include workspaces.t:library_sync2}}
113113
```
114114

115-
After pushing and fetching the result, we see that it has been succesfully mapped by josh.
115+
After pushing and fetching the result, we see that it has been successfully mapped by josh.
116116

117117
One suprising thing is the history: our "mapping" commit became a merge commit!
118118
This is because josh needs to merge the history of the module we want to map into the
@@ -135,7 +135,7 @@ no merge here.
135135

136136
### Interacting with workspaces
137137

138-
Let's now create a second workspce, this time for application2.
138+
Let's now create a second workspace, this time for application2.
139139
It depends on library1 and library2.
140140

141141
```shell
@@ -179,7 +179,7 @@ We can push this change like any normal git change:
179179
```
180180

181181
Since the change was merged in the central repository,
182-
a developper can now pull from the application1 workspace.
182+
a developer can now pull from the application1 workspace.
183183

184184
```shell
185185
{{#include workspaces.t:app1_pull}}

docs/src/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ cache.
6464
>can do that, it is a fairly expensive operation it's something you would do for example when you
6565
>import an old repository into a one huge git repository and then you can split it later on to be
6666
>multiple smaller ones, you can do it, what I am trying to say is that you should generally try to
67-
>avoid it. It's not that git can not handle huge projects, git would not perform as well as it would
67+
>avoid it. It's not that git cannot handle huge projects, git would not perform as well as it would
6868
>otherwise. And you will have issues that you wish you didn't not have.
6969
>
7070
>So I am skipping this issue and going back to the performance issue. One of the things I want to

docs/src/reference/filters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Filters always begin with a colon and can be chained:
1313

1414
:filter1:filter2
1515

16-
When used as part of an URL filters can not contain white space or newlines. When read from a file
16+
When used as part of an URL filters cannot contain white space or newlines. When read from a file
1717
however white space can be inserted between filters (not after the leading colon).
1818
Additionally newlines can be used instead of ``,`` inside of composition filters.
1919

@@ -66,7 +66,7 @@ workspace root as well as additional files specified in the ``workspace.josh`` f
6666
Applies the supplied regular expressions to every file in the input tree.
6767

6868
### Signature removal **`:unsign`**
69-
The default behaviour of Josh is to copy, if it exsists, the signature of the original commit in
69+
The default behaviour of Josh is to copy, if it exists, the signature of the original commit in
7070
the filtered commit. This makes the signature invalid, but allows a perfect round-trip: josh will be
7171
able to recreate the original commit from the filtered one.
7272

docs/src/reference/workspace.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Remove a mapping
8484

8585
To remove a mapping remove the corresponding entry from the ``workspace.josh`` file.
8686
The content of the previously shared path will stay in the workspace. That means the main
87-
repo will have two copies of that path from that point on. Effectivly creating a fork of that code.
87+
repo will have two copies of that path from that point on. Effectively creating a fork of that code.
8888

8989
Remove a mapped path
9090
--------------------

docs/src/usecases.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The partial repo will act as a normal git repository but only contain the files
1414
found in the subdirectory and only commits affecting those files.
1515
The partial repo supports both fetch as well as push operation.
1616

17-
This helps not just to improve performace on the client due to having fewer files in
17+
This helps not just to improve performance on the client due to having fewer files in
1818
the tree,
1919
it also enables collaboration on parts of the monorepo with other parties
2020
utilizing git's normal distributed development features.
@@ -73,7 +73,7 @@ $ git clone http://josh/central.git:workspace=workspaces/project1.git
7373

7474
Each of the subprojects defines a `workspace.josh` file, defining the mapping between the original central.git repository and the hierarchy in use inside of the project.
7575

76-
In this setup, project1 and project2 can seemlessly depend on the latest version of library1, while only checking out the part of the central monorepo that's needed for their purpose.
76+
In this setup, project1 and project2 can seamlessly depend on the latest version of library1, while only checking out the part of the central monorepo that's needed for their purpose.
7777
What's more, any changes to a shared module will be synced in both directions.
7878

7979
If a developer of the library1 pushed a new update, both projects will get the new version, and the developer will be able to check if they broke any test.
@@ -83,8 +83,8 @@ If a developer of project1 needs to update the library, the changes will be auto
8383

8484
With everything stored in one repo, CI/CD systems only need to look into one source for each particular
8585
deliverable.
86-
However in traditional monorepo environments dependency mangement is handled by the build system.
87-
Build systems are usually taylored to specific languages and need their input already checked
86+
However in traditional monorepo environments dependency management is handled by the build system.
87+
Build systems are usually tailored to specific languages and need their input already checked
8888
out on the filesystem.
8989
So the question:
9090

@@ -93,11 +93,11 @@ So the question:
9393
cannot be answered without cloning the entire repository and understanding how the languages
9494
used handle dependencies.
9595

96-
In particular when using C familiy languages, hidden dependencies on header files are easy to miss.
96+
In particular when using C family languages, hidden dependencies on header files are easy to miss.
9797
For this reason limiting the visibility of files to the compiler by sandboxing is pretty much a requirement
9898
for reproducible builds.
9999

100-
With Josh, each deliverable gets it's own virtual git repository with dependencies declared in the `workspace.josh`
100+
With Josh, each deliverable gets its own virtual git repository with dependencies declared in the `workspace.josh`
101101
file. This means answering the above question becomes as simple as comparing commit ids.
102102
Furthermore due to the tree filtering each build is guaranteed to be perfectly sandboxed
103103
and only sees those parts of the monorepo that have actually been mapped.
@@ -108,7 +108,7 @@ typically necessary with normal build tools.
108108
### GraphQL API
109109

110110
It is often desireable to access content stored in git without requiring a clone of the repository.
111-
This is usefull for CI/CD systems or web frontends such as dashboards.
111+
This is useful for CI/CD systems or web frontends such as dashboards.
112112

113113
Josh exposes a GraphQL API for that purpose. For example, it can be used to find all workspaces currently
114114
present in the tree:

0 commit comments

Comments
 (0)