From 396fa1d81a86cbf0eb3cac0b1309442ea42a1c16 Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Thu, 14 Sep 2023 21:23:12 -0700 Subject: [PATCH] docs: mention `git pack-refs` for co-located repos As suggested by @yuja in https://github.com/martinvonz/jj/issues/1841#issuecomment-1720451152 --- docs/git-compatibility.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/git-compatibility.md b/docs/git-compatibility.md index 0dde7c1469..a4c1f8ec56 100644 --- a/docs/git-compatibility.md +++ b/docs/git-compatibility.md @@ -128,6 +128,11 @@ repos may require you to deal with more involved Jujutsu and Git concepts. it because they automatically run `git fetch` in the background from time to time. +* In co-located repos with a very large number of branches or other refs, `jj` + commands can get noticeably slower because of the automatic `jj git import` + and `jj git export` executed on each command. This can be mitigated by + occasionally running `git pack-refs` to speed up the import and export. + * Git tools will have trouble with revisions that contain conflicted files. While `jj` renders these files with conflict markers in the working copy, they are stored in a non-human-readable fashion inside the repo. Git tools will often