Skip to content

Implement reset command, branch safety checks, and merge flow#6

Merged
Ink-dark merged 9 commits into
mainfrom
feat/missing-features-doc
Jun 13, 2026
Merged

Implement reset command, branch safety checks, and merge flow#6
Ink-dark merged 9 commits into
mainfrom
feat/missing-features-doc

Conversation

@Ink-dark

Copy link
Copy Markdown
Contributor

No description provided.

Ink-dark and others added 9 commits June 13, 2026 15:28
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…d modes

- Add  subcommand: unstage files or move HEAD with --soft/--mixed/--hard
- Support  to restore index entries from HEAD tree
- Support  to move branch ref
- Support  parent traversal in commit resolution (e.g. HEAD~3)
- Handle edge case: unstage before any commits (remove from index directly)
- Expose  and  in core::checkout

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…0-2)

- Check for modified/deleted tracked files before switching branches
- Refuse checkout with dirty working tree unless --force/-f is used
- Clear error message directing user to commit or stash changes

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Add  subcommand for managing user.name, user.email, aliases
- Support  (get),  (set)
- Support  to show all config,  to remove a key
- Support  flag for ~/.agitconfig.toml vs repo .agit/config.toml
- Fallback to default values for user.name/email when key not found

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- commit now detects MERGE_HEAD and creates merge commit with both parents
- commit auto-uses MERGE_MSG when no -m flag provided during merge
- merge --abort: restore index+working tree to ORIG_HEAD, clean merge state
- merge --continue: delegates to commit (which handles MERGE_HEAD)
- ORIG_HEAD saved at merge start for reliable abort recovery

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Cargo.toml: 0.4.1 -> 0.5.4
- docs/MISSING_FEATURES.md: mark all P0 items as done with commit hashes

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
add detailed issue report about the improper file read error handling in checkout command, including problem description, reproduction steps and fix suggestion
1. 更新 Cargo.lock 版本号至 0.5.4
2. 格式化代码参数声明的换行排版
3. 重构部分函数参数格式提升可读性
4. 新增中文 README 文档
5. 优化英文 README 的表述和结构
更新Cargo.toml和Cargo.lock中的版本号从0.5.4到0.5.5
@Ink-dark Ink-dark merged commit fdc630a into main Jun 13, 2026
21 checks passed
@Ink-dark Ink-dark deleted the feat/missing-features-doc branch June 13, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant