mirror of
https://github.com/tj/git-extras.git
synced 2026-09-12 08:26:17 -04:00
Fix typos
Suggested-by: codespell Suggested-by: spellintian
This commit is contained in:
parent
e24c1302f4
commit
1a414f5512
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@
|
|||
|
||||
<p> --addworkspace <ws-name> <ws-root-directory></p>
|
||||
|
||||
<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.</p>
|
||||
<p> 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>
|
||||
|
||||
<p> --removeworkspace <ws-name></p>
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ git bulk adds convenient support for operations that you want to execute on mult
|
|||
|
||||
--addworkspace <ws-name> <ws-root-directory>
|
||||
|
||||
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.
|
||||
|
||||
--removeworkspace <ws-name>
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue