feat(list): enrich daft list with status indicators, branch age, and relative paths#266
Merged
feat(list): enrich daft list with status indicators, branch age, and relative paths#266
Conversation
Replace verbose git relative dates ("3 days ago") with compact shorthand
format (<1m, 5m, 3h, 2d, 3w, 5mo, 2y) and add a new "Age" column
showing how old each branch is since creation.
- Change WorktreeInfo to store Unix timestamps instead of strings
- Add get_branch_creation_timestamp() using reflog with log fallback
- Add shorthand_from_seconds() pure function with unit tests
- Update table header to 8 columns with new "Age" column
- Add branch_age field to JSON output
- Add 3 integration tests for new features
- Update docs, man pages, and SKILL.md
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…commit - Add Head column showing short 7-char commit SHA - Add Remote column showing remote tracking branch (e.g. origin/main) - Path column now shows relative path from cwd instead of project root - Combine last commit age + subject into single column to fix width issue - Add pathdiff dependency for relative path computation - Add integration tests for new columns Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…t branch marker - Head column now shows uncommitted file count (~N) instead of SHA - Remote column now shows ahead/behind vs upstream tracking branch - Default branch marked with * after name (git convention) - Removed head_sha and remote_branch fields, added head_changes, remote_ahead, remote_behind, is_default_branch - Updated integration tests, docs, man pages, and SKILL.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…h marker Head column now shows +N staged (green), -N unstaged (red), ?N untracked (dim) instead of a single ~N count. Remote column uses ⇡N/⇣N arrows for unpushed/unpulled commits. Default branch suffix changed from * to ◉. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
3d,2w,5mo) instead of verbose dates+Nstaged,-Nunstaged,?Nuntracked⇡N/⇣Narrows for unpushed/unpulled commits◉suffix--jsonfields:staged,unstaged,untracked,remote_ahead,remote_behind,branch_age,is_default_branchTest plan
mise run clippy— zero warningsmise run fmt— formattedmise run test:unit— 404 tests passmise run test:integration— all list tests pass including new tests for head/remote/relative-path/JSON fieldsdaft listshows enriched columns with correct indicators🤖 Generated with Claude Code