Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Add after slash command to create changes after references#1

Draft
schpet wants to merge 1 commit intomainfrom
push-ouzuxwzkrysp
Draft

Add after slash command to create changes after references#1
schpet wants to merge 1 commit intomainfrom
push-ouzuxwzkrysp

Conversation

@schpet
Copy link
Copy Markdown
Owner

@schpet schpet commented Oct 23, 2025

Implement /jjagent:after command that creates a new jj change after a specified reference and immediately tracks the session in it. Combines jj new -A <ref> functionality with session ID trailer insertion.

  • New jjagent after <session-id> <ref> subcommand
  • Creates change with session trailer in commit message
  • Automatically moves working copy to newly created change
  • Supports flexible references (change IDs, revsets, etc.)
  • Slash command file: commands/after.md
  • 4 comprehensive snapshot tests covering basic, revset, integration, and working copy movement scenarios
  • All tests pass with no clippy warnings

Claude-session-id: 9855dabe-7f0d-4997-8d89-246a55e5cdf7

Implement `/jjagent:after` command that creates a new jj change after a
specified reference and immediately tracks the session in it. Combines
`jj new -A <ref>` functionality with session ID trailer insertion.

- New `jjagent after <session-id> <ref>` subcommand
- Creates change with session trailer in commit message
- Automatically moves working copy to newly created change
- Supports flexible references (change IDs, revsets, etc.)
- Slash command file: `commands/after.md`
- 4 comprehensive snapshot tests covering basic, revset, integration, and
  working copy movement scenarios
- All tests pass with no clippy warnings

Claude-session-id: 9855dabe-7f0d-4997-8d89-246a55e5cdf7
@schpet schpet closed this Oct 23, 2025
@schpet schpet reopened this Oct 23, 2025
@schpet
Copy link
Copy Markdown
Owner Author

schpet commented Oct 23, 2025

note: this needs to use --no-edit but i odn't think it does

@schpet schpet marked this pull request as draft October 23, 2025 18:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant