- Introduce new git folder management functions: `clean-git-folder`, `commit-git-folder`, `ls-git-folder`, `push-git-folder`, `reset-git-folder`, `stage-git-folder`, `status-git-folder` - Add `.prompt/update-switch-case-for-all-task-files` script to update task files with comma-separated command support - Enhance task command parsing to support comma-separated commands with whitespace trimming and error handling - Document all new git folder functions in `library.md` under Git section - Add all new git folder functions to help table in `task.template` - Update `library.md` to include folder structure overview and fix typos - Maintain consistent formatting and structure with existing code
12 lines
281 B
Bash
Executable File
12 lines
281 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
stage-git-folder() {
|
|
if [[ -z "$1" ]]; then echo "\$1 is empty."; exit; fi
|
|
local git_folders=$(ls-git-folder "$1")
|
|
|
|
for git_folder in $git_folders; do
|
|
echo "Stage all files in $git_folder."
|
|
git -C "$git_folder" add --all
|
|
done
|
|
}
|