MCPcopy Index your code
hub / github.com/HairlessVillager/minecommit / git_repack

Function git_repack

minecommit/src/utils/cmd.rs:172–192  ·  view source on GitHub ↗
(git_dir: impl AsRef<OsStr>)

Source from the content-addressed store, hash-verified

170}
171
172pub fn git_repack(git_dir: impl AsRef<OsStr>) -> Result<()> {
173 log::info!("Repacking");
174 let cmd = git_cmd(
175 git_dir,
176 [
177 "-c",
178 "pack.deltaCacheLimit=65535",
179 "-c",
180 "pack.deltaCacheSize=1073741824", // 1GiB
181 "repack",
182 "--depth=4095",
183 "--window=2",
184 "-a",
185 "-d",
186 "-f",
187 "--path-walk",
188 ],
189 );
190 let _ = exec(cmd, None)?;
191 Ok(())
192}

Callers 2

perform_commitFunction · 0.85
mainFunction · 0.85

Calls 2

git_cmdFunction · 0.85
execFunction · 0.85

Tested by

no test coverage detected