Skip to content

duplicates: improve the checksum option docs - #6913

Open
cycsmail wants to merge 1 commit into
beetbox:masterfrom
cycsmail:duplicates-checksum-docs-3979
Open

duplicates: improve the checksum option docs#6913
cycsmail wants to merge 1 commit into
beetbox:masterfrom
cycsmail:duplicates-checksum-docs-3979

Conversation

@cycsmail

@cycsmail cycsmail commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes #3979.

The docs suggested beet dup -C 'md5sum {file}' as a checksum command, but it can never match anything: the plugin uses the command's entire output as the checksum, and md5sum prints the file's path after the hash, so two copies of the same file always look different. The docs also didn't explain how the command is run (split shlex-style with {file} substituted per argument, no shell, so no pipes or redirection).

Reworded the checksum option description to cover that, dropped the broken md5sum example and added a small wrapper-script recipe for commands like md5sum. I checked the recipe end to end on a throwaway library with duplicate files (paths with spaces included); the duplicates plugin tests pass and sphinx-lint/docstrfmt are clean on the changed files.

To Do

  • Documentation.
  • Changelog.
  • Tests (docs-only change)

@cycsmail
cycsmail requested a review from a team as a code owner August 6, 2026 02:01
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions github-actions Bot added the duplicates duplicates plugin label Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

duplicates duplicates plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicates: Improve docs on using external commands

1 participant