improve MIME detection, rm dbg

tzemanovic
Jan 28, 2026, 10:56 AM
LLUIHLAPB6EQSSRWODZZVJLR4K77EF62KTO3KC5P5DVWF5G3FG7QC

Dependencies

  • [2] 6YZAVBWU Initial commit
  • [3] YBJRDOTC make all repo actions async
  • [4] A5YBC77V record!
  • [5] WI2BVQ6J rm client lib crate
  • [6] OPXFZKEB view tests setup
  • [7] 6F7Q4ZLR avoid unused warns
  • [8] PTWZYQFR use nav-scrollable for repo status
  • [9] 7MJOO4E2 task wrappers tooling workaround
  • [10] WH57EHNM update tests
  • [11] FU6P5QLG indicate when a file is a dir with appended '/'
  • [12] YGZ3VCW4 add push
  • [13] 6LF2U2Y6 improve file encoding detection
  • [14] G5WLRXOD add screenshots for test
  • [15] OLT666N4 fix screenshot test to include status, fix failed test report
  • [16] F6O6FGOJ improve diffs encoding detection
  • [17] JZXYSIYD channel selection!
  • [18] UPWS6J3B filter to-record changes from selection
  • [*] SWWE2R6M display basic repo stuff

Change contents

  • replacement in libflorescence/src/repo.rs at line 12
    [5.62][11.1274:1310](),[11.1310][16.2676:2711]()
    use crate::{diff, file, to_record};
    use crate::{encoding, prelude::*};
    [4.47]
    [5.62]
    use crate::prelude::*;
    use crate::{diff, encoding, file, to_record};
  • edit in libflorescence/src/encoding.rs at line 5
    [16.200]
    [16.200]
    // TODO: improve encoding detection in pijul, then remove "application/octet-stream" MIME case as it tends to misclassify utf16 (see <https://github.com/Wilfred/difftastic/pull/473#discussion_r1093853923>)
  • edit in libflorescence/src/encoding.rs at line 19
    [16.667][16.667:683]()
    dbg!(mime);
  • edit in Cargo.toml at line 137
    [13.3040]
    [3.18594]
    features = ["with-gpl-data"] # NOTE requires GPL license
  • edit in Cargo.lock at line 5979
    [2.80023]
    [13.3538]
    name = "tree_magic_db"
    version = "3.0.1"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "bd30f22e7532ed0d3d846e24841a132c8dcb779f5b497bda82d904aa04755375"
    [[package]]
  • edit in Cargo.lock at line 5993
    [13.3779]
    [13.3779]
    "tree_magic_db",