feat(git-folder): swap url and branch parameters in add-git-folder and update docs
This commit is contained in:
3 files changed
+7
-7
No files matched your search
+4
-4
@@ -2,19 +2,19 @@
|
||||
|
||||
add-git-folder() {
|
||||
if [[ -z "$1" ]]; then
|
||||
echo '$1/branch is empty.'
|
||||
echo '$1/url is empty.'
|
||||
exit
|
||||
fi
|
||||
if [[ -z "$2" ]]; then
|
||||
echo '$2/url is empty.'
|
||||
echo '$2/branch is empty.'
|
||||
exit
|
||||
fi
|
||||
if [[ -z "$3" ]]; then
|
||||
echo '$3/path is empty.'
|
||||
exit
|
||||
fi
|
||||
local branch="$1"
|
||||
local url="$2"
|
||||
local url="$1"
|
||||
local branch="$2"
|
||||
local path="$3"
|
||||
|
||||
# Clone the repo
|
||||
|
||||
+1
-1
@@ -276,7 +276,7 @@ These commands replace the `git submodule` command. The commands store and retri
|
||||
### add-git-folder
|
||||
|
||||
```bash
|
||||
rows+=("add-git-folder|[branch][url][path]|Add git folder to .gitmodules.")
|
||||
rows+=("add-git-folder|[url][branch][path]|Add git folder to .gitmodules.")
|
||||
```
|
||||
|
||||
### add-git-merge
|
||||
|
||||
+2
-2
@@ -44,8 +44,8 @@ help-table() {
|
||||
rows+=("log-success||Colored output for success.")
|
||||
rows+=("log-warning||Colored output for warnings.")
|
||||
rows+=("===Git===| | ")
|
||||
rows+=("add-git-folder|[branch][url][path]|Add git folder to .gitmodules.")
|
||||
rows+=("add-git-merge|[remote][merge][path]|Add git merge ref to git folder in .gitmodules.")
|
||||
rows+=("add-git-folder|[url][branch][path]|Add git folder to .gitmodules.")
|
||||
rows+=("add-git-merge|[remote][branch][path]|Add git merge ref to gitmodules.")
|
||||
rows+=("add-git-remote|[remote][url][path]|Add git remote to git folder.")
|
||||
rows+=("aggregate-git-folders|[path]|Run gitaggregate for the repos.yaml.")
|
||||
rows+=("commit-git-folder|[message][path]|Commit all changes in git folders in path.")
|
||||
|
||||
Reference in new issue
Block a user