Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议 git 仓库就用 7z 文件,我可以提供定制的 diff / merge 工具。 #117

Open
cupen opened this issue Feb 26, 2024 · 2 comments

Comments

@cupen
Copy link

cupen commented Feb 26, 2024

git 仓库里加一个 .gitattributes 文件,用于给 7z 文件指定个特殊的 diff 和 merge 工具。
慢就慢点,无所谓的,现在大家的桌面机几乎都是 16c32g 的配置,性能相当凑合。

@cupen cupen changed the title 我其实觉得 7z 文件足矣,我可以提供定制的 diff / merge 工具。 建议 git 仓库就用 7z 文件,我可以提供定制的 diff / merge 工具。 Feb 26, 2024
@cupen
Copy link
Author

cupen commented Feb 26, 2024

甚至 sqlite 文件,或者任意一种二进制的压缩格式都可以的,怎么方便怎么来。

@cupen
Copy link
Author

cupen commented Mar 1, 2024

测试了下 7z e stardict.7z ,只需 2.5 秒。

$ time 7z e stardict.7z 

7-Zip [64] 17.05 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.05 (locale=C.UTF-8,Utf16=on,HugeFiles=on,64 bits,12 CPUs x64)

Scanning the drive for archives:
1 file, 49613755 bytes (48 MiB)

Extracting archive: stardict.7z
--
Path = stardict.7z
Type = 7z
Physical Size = 49613755
Headers Size = 130
Method = LZMA2:28
Solid = -
Blocks = 1

Everything is Ok   

Size:       227559682
Compressed: 49613755

real	0m2.455s
user	0m2.235s
sys	0m0.217s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant