groove-utilities-memory-log-git

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

groove-utilities-memory-log-git

groove-utilities-memory-log-git

Outcome

输出结果

<memory>/git/YYYY-MM-DD-GIT-N.md
is created with a git summary for the current session. N is auto-incremented based on existing files for that date.
<memory>/git/YYYY-MM-DD-GIT-N.md
会被创建,其中包含当前会话的Git摘要。N会根据该日期已有的文件自动递增。

Acceptance Criteria

验收标准

  • File created at
    <memory>/git/YYYY-MM-DD-GIT-N.md
    with correct N
  • Content includes commits since midnight, git status, and diff stats
  • N does not collide with existing files for the same date
  • File is suitable for inclusion in the same commit it describes
  • <memory>/git/YYYY-MM-DD-GIT-N.md
    路径创建文件,且N的取值正确
  • 文件内容包含午夜以来的提交记录、git status状态以及diff统计信息
  • 同一日期下N不会与已有文件重复
  • 文件适合被包含在它所描述的同一次提交中

Constraints

约束条件

  • Use
    memory:
    path from
    .groove/index.md
    frontmatter
  • Always list existing files in
    <memory>/git/
    before writing to determine correct N
  • N starts at 1 for the first file of the day, increments for subsequent
  • Git data to include:
    • git log --since=midnight --oneline
      for commits
    • git status --short
      for current state
    • git diff --stat HEAD
      for changed files summary
  • Use template at
    skills/groove-utilities-memory-log-git/templates/git.md
    for file structure
  • If no git changes since midnight, still write the file noting no changes
  • 使用
    .groove/index.md
    前置元数据中的
    memory:
    路径
  • 在写入文件前,必须先列出
    <memory>/git/
    目录下的所有已有文件,以确定正确的N值
  • 当天的第一个文件N从1开始,后续文件依次递增
  • 需要包含的Git数据:
    • 用于提交记录的
      git log --since=midnight --oneline
    • 用于当前状态的
      git status --short
    • 用于变更文件摘要的
      git diff --stat HEAD
  • 使用
    skills/groove-utilities-memory-log-git/templates/git.md
    中的模板来构建文件结构
  • 即使午夜以来没有Git变更,仍需写入文件并标注无变更