Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 2.37 KB

File metadata and controls

61 lines (46 loc) · 2.37 KB

camp commit

Commit changes in the camp root

Synopsis

Commit changes in the camp root directory.

Automatically stages all changes and creates a commit. Handles stale lock files from crashed processes.

At the camp root, submodule ref changes (projects/*) are excluded from staging by default to prevent accidental ref conflicts across machines. Use --include-refs to stage them explicitly.

Use --sub to commit in the submodule detected from your current directory. Use -p/--project to commit in a specific project (e.g., -p projects/camp).

Commit tags use explicit --workitem or context from the current path (workitem directory, primary project/festival link).

Examples: camp commit -m "Add new feature" camp commit --amend -m "Fix typo" camp commit -a -m "Stage and commit all" camp commit --include-refs -m "Sync all submodule refs" camp commit --sub -m "Commit in current submodule" camp commit -p projects/camp -m "Commit in camp project"

camp commit [flags]

Options

  -a, --all                   Stage all changes before committing (default true)
      --amend                 Amend the previous commit
      --auto-write            Run configured commit message writer
      --commit-large          Commit over-threshold files instead of keeping them out of git
      --commit-nested         Commit undeclared nested git repositories as gitlinks instead of keeping them out of git
  -h, --help                  help for commit
      --include-refs          Include submodule ref changes when staging at camp root
      --json                  Emit a JSON result on stdout; human output goes to stderr
  -m, --message stringArray   Commit message (repeatable; multiple -m are joined git-style into subject + body; required unless --auto-write)
      --no-drain              Do not wait for camp's queued commits first
      --no-edit               Amend without editing the commit message (requires --amend)
  -p, --project string        Operate on a specific project/submodule path
      --sub                   Operate on the submodule detected from current directory
      --workitem string       explicit workitem selector for the commit tag (overrides cwd-based resolution)

Options inherited from parent commands

      --no-color   disable colored output

SEE ALSO

  • camp - Manage your camps and the projects and festivals inside them