Skip to content

Tighten git dirty path contracts#86

Merged
codeforester merged 1 commit into
mainfrom
bug/80-20260624-git-helper-contracts
Jun 25, 2026
Merged

Tighten git dirty path contracts#86
codeforester merged 1 commit into
mainfrom
bug/80-20260624-git-helper-contracts

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

  • Check both source and destination paths for tracked rename records in _git_only_path_dirty.
  • Return status 3 when check_script_up_to_date sees a script that is both behind and locally dirty.
  • Document allowed dirty path and return precedence contracts.

Validation

  • shellcheck --severity=error lib/bash/git/lib_git.sh lib/bash/git/tests/lib_git.bats
  • bats lib/bash/git/tests/lib_git.bats
  • ./tests/validate.sh

Fixes #80
Fixes #81

@codeforester codeforester force-pushed the bug/79-20260624-str-helper-hardening branch from 3413002 to 5ca5a49 Compare June 25, 2026 04:00
Base automatically changed from bug/79-20260624-str-helper-hardening to main June 25, 2026 04:02
@codeforester codeforester force-pushed the bug/80-20260624-git-helper-contracts branch from 4d610ce to 3b4b1a5 Compare June 25, 2026 04:06
@codeforester codeforester merged commit 3a953f7 into main Jun 25, 2026
2 checks passed
@codeforester codeforester deleted the bug/80-20260624-git-helper-contracts branch June 25, 2026 04:07
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.

Define check_script_up_to_date return precedence for behind and dirty scripts Check both rename paths in _git_only_path_dirty

1 participant