Fix typos

Suggested-by: codespell
Suggested-by: spellintian
This commit is contained in:
Paul Wise 2019-09-04 19:42:17 +08:00
parent e24c1302f4
commit 1a414f5512
No known key found for this signature in database
GPG key ID: 3116BA5E9FFA69A3
8 changed files with 11 additions and 11 deletions

View file

@ -317,7 +317,7 @@ $ git bulk --purge
## git repl
Git read-eval-print-loop. Let's you run `git` commands without typing 'git'.
Git read-eval-print-loop. Lets you run `git` commands without typing 'git'.
Commands can be prefixed with an exclamation mark (!) to be interpreted as
a regular command.

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
invers=$(tput rev)
inverse=$(tput rev)
reset=$(tput sgr0)
txtbld=$(tput bold)
bldred=${txtbld}$(tput setaf 1)
@ -39,7 +39,7 @@ function listall { git config --global --get-regexp bulkworkspaces; }
# guarded execution of a git command in one specific repository
function guardedExecution () {
if $guardedmode; then
echo -n "${invers}git $gitcommand${reset} -> execute here (y/n)? "
echo -n "${inverse}git $gitcommand${reset} -> execute here (y/n)? "
read -n 1 -r </dev/tty; echo
if [[ $REPLY =~ ^[Yy]$ ]]; then atomicExecution; fi
else
@ -49,7 +49,7 @@ function guardedExecution () {
# atomic git command execution with log
function atomicExecution () {
echo "${bldred}->${reset} executing ${invers}git $gitcommand${reset}" && git $gitcommand
echo "${bldred}->${reset} executing ${inverse}git $gitcommand${reset}" && git $gitcommand
}
# check if the passed command is known as a core git command
@ -108,7 +108,7 @@ function executBulkOp () {
if [[ -n $wsname ]] && [[ $rwsname != "$wsname" ]]; then continue; fi
eval cd "\"$rwsdir\""
local actual=$(pwd)
echo "Executing bulk operation in workspace ${invers}$actual${reset}"
echo "Executing bulk operation in workspace ${inverse}$actual${reset}"
eval find -L . -name ".git" | while read line; do
local gitrepodir=${line::${#line}-5} # cut the .git part of find results to have the root git directory of that repository
eval cd "\"$gitrepodir\"" # into git repo location

View file

@ -375,7 +375,7 @@ _exit() {
# The format of `ps` is different between Windows and other platforms,
# so we need to calculate the total column number(COL_NUM) of header first.
# Why don't we just use the last column?
# Because the body of CMD column may contain space and be treated as multiple fileds.
# Because the body of CMD column may contain space and be treated as multiple fields.
pid_list=( $(ps -f |
awk -v ppid=$$ 'NR == 1 {
COL_NUM = NF

View file

@ -129,7 +129,7 @@ done
shift $((OPTIND-1))
if [[ $# -gt 0 ]]; then
warn "please upgrate to new-style interface. Run 'git help standup' to get more info."
warn "please upgrade to new-style interface. Run 'git help standup' to get more info."
if [[ $# -gt 3 ]] ; then
usage
exit 1

View file

@ -51,7 +51,7 @@ Any git Command you wish to execute on the repositories\.
\-\-addworkspace <ws\-name> <ws\-root\-directory>
.
.P
Register a workspace for bulk operations\. All repositories in the diretories below <ws\-root\-directory> get registered under this workspace with the name <ws\-name>\. <ws\-root\-directory> must be absolute path\.
Register a workspace for bulk operations\. All repositories in the directories below <ws\-root\-directory> get registered under this workspace with the name <ws\-name>\. <ws\-root\-directory> must be absolute path\.
.
.P
\-\-removeworkspace <ws\-name>

View file

@ -114,7 +114,7 @@
<p> --addworkspace &lt;ws-name&gt; &lt;ws-root-directory&gt;</p>
<p> Register a workspace for bulk operations. All repositories in the diretories below &lt;ws-root-directory&gt; get registered under this workspace with the name &lt;ws-name&gt;. &lt;ws-root-directory&gt; must be absolute path.</p>
<p> Register a workspace for bulk operations. All repositories in the directories below &lt;ws-root-directory&gt; get registered under this workspace with the name &lt;ws-name&gt;. &lt;ws-root-directory&gt; must be absolute path.</p>
<p> --removeworkspace &lt;ws-name&gt;</p>

View file

@ -38,7 +38,7 @@ git bulk adds convenient support for operations that you want to execute on mult
--addworkspace &lt;ws-name&gt; &lt;ws-root-directory&gt;
Register a workspace for bulk operations. All repositories in the diretories below &lt;ws-root-directory&gt; get registered under this workspace with the name &lt;ws-name&gt;. &lt;ws-root-directory&gt; must be absolute path.
Register a workspace for bulk operations. All repositories in the directories below &lt;ws-root-directory&gt; get registered under this workspace with the name &lt;ws-name&gt;. &lt;ws-root-directory&gt; must be absolute path.
--removeworkspace &lt;ws-name&gt;

View file

@ -52,7 +52,7 @@ $ git ignore-io vim
*~
```
Append sample gitignore for vim and python to .gitignore in current directory.
Append sample gitignore for Vim and Python to .gitignore in current directory.
```bash
$ git ignore-io -a vim python