Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.0] - 2026-06-25

### Added

- **Porcelain `commit` command:** Added high-level `commit` command bridging the gap from plumbing to porcelain.
- **Refs Management:** Implemented branch pointer mutation and HEAD resolution.
- **Configurable Author:** Modified `commit` logic to read author and committer data from the `.git/config` file.

## [0.2.0] - 2026-06-24

### Added
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "git-rs"
version = "0.2.0"
version = "0.3.0"
edition = "2021"
authors = ["Fady Philip <fadyph2003@gmail.com>"]
description = "A from-scratch implementation of Git's core object storage engine in Rust."
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</p>

<p align="center">
<img src="https://img.shields.io/badge/Status-Phase_4_Complete-success?" alt="Status" />
<img src="https://img.shields.io/badge/Status-Phase_5_Complete-success?" alt="Status" />
<img src="https://img.shields.io/badge/License-MIT-royalblue" alt="License" />
</p>

Expand Down
2 changes: 1 addition & 1 deletion docs/04_commit_object_and_commit_tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ graph LR
E --> F["History (DAG)"]
```

The `commit-tree` command in `git-rs` currently uses hardcoded author/committer information for simplicity. In Phase 5, this will be configurable through Git's standard configuration mechanism (user.name, user.email) or environment variables.
The `commit-tree` command in `git-rs` used hardcoded author/committer information for simplicity in Phase 4. In Phase 5, this is configurable through Git's standard configuration mechanism (user.name, user.email).

---

Expand Down
4 changes: 2 additions & 2 deletions docs/05_dag_and_commit_serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ Fady <fady@test.com> 1718000000 +0000
| Cherry-pick | Alice (original author) | Bob (performed the cherry-pick) |
| Rebase | Alice (original author) | Bob (performed the rebase) |

In `git-rs` Phase 4, author and committer are identical for simplicity. Phase 5 will support reading these from Git configuration or environment variables.
In `git-rs` Phase 4, author and committer are identical for simplicity. Phase 5 supports reading these from Git configuration.

---

Expand Down Expand Up @@ -309,7 +309,7 @@ Even though there are 3 commits, `blob-a` and `blob-c` are each stored only once
The `commit-tree` command in `git-rs` implements the following:

1. **Parses arguments** (tree hash, `-m` flag, message)
2. **Constructs a Commit struct** with hardcoded author info (Phase 5 will make this configurable)
2. **Constructs a Commit struct** with hardcoded author info (Phase 5 makes this configurable)
3. **Generates timestamp** using Unix epoch seconds
4. **Serializes the commit** to text with proper line endings
5. **Calls `write_object("commit", ...)`** to hash, compress, store, and return the hash
Expand Down
Loading