You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(log): implement complete commit history and log operations
Add comprehensive commit history functionality with multi-level API:
- Repository::log() for basic commit listing
- Repository::recent_commits() for recent N commits
- Repository::log_with_options() for advanced filtering
- Repository::log_range() for commit ranges
- Repository::log_for_paths() for path-specific history
- Repository::show_commit() for detailed commit information
Include rich types (Commit, CommitLog, Author, CommitMessage, CommitDetails, LogOptions)
with iterator-based filtering and builder pattern for advanced queries.
Add comprehensive example demonstrating all log functionality and update documentation.
-**Core types**: Hash (in src/types.rs), IndexStatus, WorktreeStatus, FileEntry (in src/commands/status.rs), Branch, BranchList, BranchType (in src/commands/branch.rs)
40
+
-**Commit history & log operations**: Multi-level API for comprehensive commit analysis
41
+
- Repository::log() -> Result<CommitLog> - get all commits with simple API
42
+
- Repository::recent_commits(count) -> Result<CommitLog> - get recent N commits
43
+
- Repository::log_with_options(options) -> Result<LogOptions> - advanced queries with filters
44
+
- Repository::log_range(from, to) -> Result<CommitLog> - commits between two points
45
+
- Repository::log_for_paths(paths) -> Result<CommitLog> - commits affecting specific paths
46
+
- Repository::show_commit(hash) -> Result<CommitDetails> - detailed commit information
0 commit comments