Skip to content

feat(sync): add --autostash flag for rebase phase#292

Merged
avihut merged 1 commit intomasterfrom
feat/sync-autostash
Mar 12, 2026
Merged

feat(sync): add --autostash flag for rebase phase#292
avihut merged 1 commit intomasterfrom
feat/sync-autostash

Conversation

@avihut
Copy link
Owner

@avihut avihut commented Mar 12, 2026

Summary

  • Add --autostash flag to daft sync --rebase that passes --autostash to the underlying git rebase command, automatically stashing and restoring uncommitted changes during rebase
  • Using --autostash without --rebase produces a clap validation error via requires = "rebase"
  • Threads the flag through both sequential and parallel DAG execution paths

Test plan

  • mise run clippy passes with zero warnings
  • mise run fmt:check passes
  • mise run test:unit — 618 tests pass
  • mise run man:verify — man pages up to date
  • Integration test: test_sync_rebase_autostash — dirty worktree is rebased with autostash, uncommitted changes preserved
  • Integration test: test_sync_autostash_without_rebase — error when --autostash used without --rebase

🤖 Generated with Claude Code

Add --autostash option to `daft sync --rebase` that passes
`--autostash` to the underlying `git rebase` command, automatically
stashing and restoring uncommitted changes during rebase. Using
--autostash without --rebase produces a clap validation error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@avihut avihut added this to the v1.1.0 milestone Mar 12, 2026
@avihut avihut added the feat New feature label Mar 12, 2026
@avihut avihut self-assigned this Mar 12, 2026
@avihut avihut merged commit 55d8068 into master Mar 12, 2026
6 checks passed
@avihut avihut deleted the feat/sync-autostash branch March 12, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant