CLI that turns LLM input into well-formatted Conventional Commits
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: use -a for add, --amend for amend

Changed flag behavior:
- -a is now shorthand for --add (stage all modified files)
- --amend is now long-form only (no short flag)

Updated documentation in main.go, AGENTS.md, and README.md to reflect
new flag behavior.

Closes: bug-f90a6de
Assisted-by: Claude Sonnet 4.5 via Crush

Amolith (Nov 5, 2025, 10:35 AM -0700) 7c8b8f98 a690261f

+13 -5
+3 -2
AGENTS.md
··· 109 109 - `-B` / `--breaking`: Boolean flag for breaking changes (adds `!` to subject) 110 110 - `-b` / `--body`: String flag for commit body text (can use heredoc for multiline) 111 111 - `-T` / `--trailer`: Repeatable flag accepting full trailer strings in `Key: value` format (not separate key/value args) 112 - - `-a` / `--amend`: Boolean flag to amend the previous commit instead of creating a new one 112 + - `-a` / `--add`: Boolean flag to stage all modified files before committing (optional) 113 + - `--amend`: Boolean flag to amend the previous commit instead of creating a new one (optional) 113 114 114 115 Trailer format detail: Each `-T` flag takes a complete trailer string like `-T "Assisted-by: GLM 4.6 via Crush"`, NOT separate key and value arguments. 115 116 116 117 ### Final Output 117 118 118 - The formatted commit message must be piped to `git commit -F -` to read from stdin. When the `-a`/`--amend` flag is used, it pipes to `git commit --amend -F -` instead. 119 + The formatted commit message must be piped to `git commit -F -` to read from stdin. When the `--amend` flag is used, it pipes to `git commit --amend -F -` instead.
+4 -2
README.md
··· 65 65 -m --message Commit message (required) 66 66 -b --body Commit body (optional) 67 67 -T --trailer Trailer in 'Sentence-case-key: value' format (optional, repeatable) 68 - -a --amend Amend the previous commit (optional) 68 + -a --add Stage all modified files before committing (optional) 69 + --amend Amend the previous commit (optional) 69 70 -h --help 70 71 </formatted-commit_flags> 71 72 <formatted-commit_example> ··· 154 155 155 156 FLAGS 156 157 157 - -a --amend Amend the previous commit (optional) 158 + -a --add Stage all modified files before committing (optional) 159 + --amend Amend the previous commit (optional) 158 160 -b --body Commit body (optional) 159 161 -B --breaking Mark as breaking change (optional) 160 162 -h --help Help for formatted-commit
+6 -1
main.go
··· 23 23 body string 24 24 scope string 25 25 breakingChange bool 26 + add bool 26 27 amend bool 27 28 ) 28 29 ··· 84 85 } 85 86 86 87 gitArgs := []string{"commit"} 88 + if add { 89 + gitArgs = append(gitArgs, "-a") 90 + } 87 91 if amend { 88 92 gitArgs = append(gitArgs, "--amend") 89 93 } ··· 124 128 rootCmd.Flags().StringVarP(&body, "body", "b", "", "commit body (optional)") 125 129 rootCmd.Flags().StringVarP(&scope, "scope", "s", "", "commit scope (optional)") 126 130 rootCmd.Flags().BoolVarP(&breakingChange, "breaking", "B", false, "mark as breaking change (optional)") 127 - rootCmd.Flags().BoolVarP(&amend, "amend", "a", false, "amend the previous commit (optional)") 131 + rootCmd.Flags().BoolVarP(&add, "add", "a", false, "stage all modified files before committing (optional)") 132 + rootCmd.Flags().BoolVar(&amend, "amend", false, "amend the previous commit (optional)") 128 133 129 134 if err := rootCmd.MarkFlagRequired("type"); err != nil { 130 135 panic(err)