Repository navigation
Hash stash: merge an external pre-categorized hash set - #307
Merged
Merged
Conversation
"Merge external pre-categorized hash set..." in the Hash stash dialog (and gleapp stash --merge-precategorized) folds in MD5s another tool has already categorized: JSON records each carrying an MD5 and a numeric Category. Categories 1-3 are kept, the records outside them or without an MD5 are counted and reported, and a file with no such records is refused instead of reporting a merge that added nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
charpy4n6
force-pushed
the
feat/stash-precategorized
branch
from
October 21, 2026 20:13
5262939 to
30f64c9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it adds
There's a new button in the Hash stash dialog, next to "Merge external hash stash…": Merge external pre-categorized hash set…. The same thing on the command line is
gleapp stash --merge-precategorized FILE.It folds in MD5s that another tool has already categorized. The input is a JSON file of records, each carrying an
MD5and a numericCategory. The records may sit at the top level or undervalue.pre-categorized: <file name>.Why a separate action
"Merge external hash stash" is for another examiner's GLEAPP stash (
.hstashormd5,categoryCSV). A pre-categorized hash set from another tool is a different input, so it gets its own clearly named entry.It reads JSON with a numeric
Category, not CSV. A CSV export that names its categories in words, with the category in a later column, silently added 0 rows through the existing CSV merge. A numeric code doesn't depend on any tool's wording.Testing
tests/test_stash_precategorized.py, all synthetic, covers:Docs: MANUAL (Hash stash sharing table and command examples) and the in-app help.
🤖 Generated with Claude Code