Skip to content

[test] git contrib: chain the real git-completion.bash (_git in a live completion attempt) + git-prompt.sh (__git_ps1 in a dirty repo) #2907

Closed

Description

@caomengxuan666

Eco-asset exercise-depth census follow-up (2026-11-06, ~/workspace/eco-asset-audit/REPORT.md §3 item 7). Rule (user, 2026-11-06): every eco asset must actually be called end-to-end, not merely loaded. Asset added by the census.

Current state. git's contrib scripts (git-completion.bash, git-prompt.sh) are not vendored standalone (GPL partition); in-repo coverage is a self-authored shape smoke whose header says it plainly: "The full git-completion 140-case corpus is not vendored… this smoke pins the helper protocol the real script is built on." The real scripts' entry points have never run.

Missing chains. From the vendored git tree (same GPL partition discipline as the t/ runs): (1) source the real git-completion.bash and drive _git / __git_complete with bound COMP_WORDS inside a live completion attempt against a real repository; (2) render __git_ps1 against repositories with clean / dirty / untracked / detached states.

Acceptance. Completion candidates and prompt bytes match GNU bash 5.3.20 on the exercised repositories, with the exercised-state list recorded.

Destination: Stage 3 ecosuite chain wave (1.5.1).

Activity

  1. added this to the 1.5.1 milestone on Nov 6, 2026
  2. added
    enhancement
    gnu-baseline
    area:interactive
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:interactiveenhancementgnu-baseline

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions