gabriel / muse public
feat patch reflog task/reflog-phase1 #1 / 8
AI Agent gabriel · 21 days ago · Jun 28, 2026 · Diff

feat(reflog): Phase 6 — muse reflog exists (RL_28–RL_30)

sha256:2f425b4536a83c71c0ad1084c5b1499b211743a7cd49a5637d5bfa79115981ec sha
+41 ~4 symbols
sha256:9fd3d33218ba7c71f1ee6ffea8edfe24730e11077baa2cd68a1e620c8fe1702d snapshot
+41
symbols added
~4
symbols modified
0
dead code introduced
Semantic Changes 45 symbols
~ tests/test_cmd_reflog_exists.py .py 39 symbols added
+ TestReflogExistsExitCode class class TestReflogExistsExitCode L235–307
+ test_empty_repo_always_exits_one method method test_empty_repo_always_exits_one L302–307
+ test_exit_code_matches_json_exists_field method method test_exit_code_matches_json_exists_field L287–300
+ test_exit_one_branch_missing method method test_exit_one_branch_missing L261–266
+ test_exit_one_when_no_entries method method test_exit_one_when_no_entries L246–251
+ test_exit_zero_branch_exists method method test_exit_zero_branch_exists L253–259
+ test_exit_zero_when_entries_exist method method test_exit_zero_when_entries_exist L238–244
+ test_text_output_reports_count method method test_text_output_reports_count L268–276
+ test_text_output_reports_no_entries method method test_text_output_reports_no_entries L278–285
+ TestReflogExistsFalse class class TestReflogExistsFalse L161–228
+ test_branch_ref_field_on_missing_branch_log method method test_branch_ref_field_on_missing_branch_log L218–228
+ test_json_exists_false_after_all_entries_deleted method method test_json_exists_false_after_all_entries_deleted L194–208
+ test_json_exists_false_when_branch_has_no_log method method test_json_exists_false_when_branch_has_no_log L177–192
+ test_json_exists_false_when_no_head_log method method test_json_exists_false_when_no_head_log L164–175
+ test_ref_field_is_head_when_no_log method method test_ref_field_is_head_when_no_log L210–216
+ TestReflogExistsTrue class class TestReflogExistsTrue L74–154
+ test_branch_log_exists_with_entries method method test_branch_log_exists_with_entries L120–131
+ test_branch_log_ref_field_uses_full_path method method test_branch_log_ref_field_uses_full_path L133–144
+ test_count_matches_actual_entry_count method method test_count_matches_actual_entry_count L111–118
+ test_json_exists_true_when_head_log_has_entries method method test_json_exists_true_when_head_log_has_entries L77–88
+ test_json_schema_has_all_required_fields method method test_json_schema_has_all_required_fields L90–100
+ test_ref_field_is_head_by_default method method test_ref_field_is_head_by_default L102–109
+ test_single_entry_reports_count_one method method test_single_entry_reports_count_one L146–154
+ _branch_log function function _branch_log L56–57
+ _env function function _env L30–31
+ _head_log function function _head_log L52–53
+ _make_repo function function _make_repo L34–49
+ _write_entries function function _write_entries L60–67
+ cli variable variable cli L24–24
+ CliRunner import import CliRunner L21–21
+ annotations import import annotations L11–11
+ fake_id import import fake_id L20–20
+ json import import json L13–13
+ logs_dir import import logs_dir L19–19
+ muse_dir import import muse_dir L19–19
+ pathlib import import pathlib L14–14
+ pytest import import pytest L17–17
+ time import import time L15–15
+ runner variable variable runner L23–23
~ muse/cli/commands/reflog.py .py 2 symbols added, 1 symbol modified
+ _ExistsJson class class _ExistsJson L143–148
+ run_exists function function run_exists L568–616

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:2f425b4536a83c71c0ad1084c5b1499b211743a7cd49a5637d5bfa79115981ec --body "your comment"