feat(git-folder): swap url and branch parameters in add-git-folder and update docs

This commit is contained in:
Janik von Rotz committed 2026-04-27 14:33:42 +02:00
1 parent 26f9e525c4
commit 9ae323d0c6
3 files changed
+7 -7

No files matched your search

+4 -4
View File
@@ -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
View File
@@ -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
View File
@@ -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.")