ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib/src
Yuya Nishihara 3d0b3d57d8 git_backend: on gc(), remove unreachable no-gc refs and compact them
With my jj repo, the number of jj/keep refs went down from 87887 to 27733.
The .git directory size is halved, but we'll need to clean up extra and index
files to save disk space. "git gc --prune=now && jj debug reindex" passed, so
the repo wouldn't be corrupted.

#12
2024-01-27 10:18:11 +09:00
..
default_index revset: add count_estimate() to Revset trait 2024-01-22 15:07:00 -08:00
lock
protos view: drop tracking of public heads 2024-01-13 22:23:57 -08:00
backend.rs backend: pass Index and keep_newer timestamp parameters to gc() 2024-01-27 10:18:11 +09:00
commit.rs sign: Define signing backend API and integrate it 2023-11-30 23:36:56 +02:00
commit_builder.rs Make CommitBuilder constructors private to the library crate 2023-12-24 19:25:16 -08:00
conflicts.rs cli: pass MaterializedTreeValue into git_diff_part() 2023-11-10 04:54:47 -08:00
content_hash.rs
dag_walk.rs dag_walk: add fallible topo_order_reverse_lazy() 2023-11-14 07:16:39 +09:00
default_submodule_store.rs
diff.rs
file_util.rs op_store: implement GC of unreachble operations and views 2024-01-09 10:37:03 +09:00
files.rs merge: relax input type of Merge::from_removes_adds() 2023-11-07 17:10:12 +09:00
fmt_util.rs
fsmonitor.rs fsmonitor: exclude .git and .jj directories from changed files 2023-11-23 18:48:14 +09:00
git.rs git: simplify import_head() as it doesn't have to process multiple head commits 2024-01-27 00:01:59 +09:00
git_backend.rs git_backend: on gc(), remove unreachable no-gc refs and compact them 2024-01-27 10:18:11 +09:00
gitignore.rs
hex_util.rs hex_util: move common_hex_len() from backend module 2024-01-05 10:20:57 +09:00
id_prefix.rs object_id: make ObjectId constructors non-trait methods 2024-01-05 23:36:57 +09:00
index.rs index: add all_heads_for_gc() that iterates heads of all indexed commits 2024-01-17 23:07:14 +09:00
lib.rs default_index: adopt revset engine and graph iterator modules 2024-01-07 05:37:47 -08:00
local_backend.rs backend: pass Index and keep_newer timestamp parameters to gc() 2024-01-27 10:18:11 +09:00
local_working_copy.rs workspace: combine working copy functions into a trait 2024-01-25 11:46:07 -08:00
lock.rs lock: remove byteorder dependency from tests, use fs helper functions 2023-12-23 00:14:17 +09:00
matchers.rs matchers: clean up .walk_to(dir) to yield &RepoPath instead of iterator 2023-11-29 08:41:23 +09:00
merge.rs object_id: extract ObjectId trait and macros to separate module 2024-01-05 10:20:57 +09:00
merged_tree.rs merged_tree: remove canceling terms prior to resolving file-level conflict 2023-12-03 07:44:58 +09:00
object_id.rs object_id: don't allow ObjectId::from_hex() a dynamically allocated string 2024-01-06 00:26:36 +09:00
op_heads_store.rs op_heads: let caller decide resolve_op_heads() error type 2024-01-01 10:22:23 +09:00
op_store.rs git: simplify import_head() as it doesn't have to process multiple head commits 2024-01-27 00:01:59 +09:00
op_walk.rs op_walk: assert that virtual root op is not reparented 2024-01-16 21:46:54 +09:00
operation.rs operation: remove operation::View wrapper in favor of view::View 2024-01-12 08:01:02 +09:00
refs.rs object_id: make ObjectId constructors non-trait methods 2024-01-05 23:36:57 +09:00
repo.rs repo: optimize enforce_view_invariants() to not traverse ancestors until root 2024-01-15 09:57:02 +09:00
repo_path.rs working_copy: add file states wrapper that provides map-like API 2023-11-30 12:09:31 +09:00
revset.pest
revset.rs revset: add count_estimate() to Revset trait 2024-01-22 15:07:00 -08:00
revset_graph.rs clippy: Fix nightly warnings about "useless use of vec!" 2024-01-25 22:00:26 -08:00
rewrite.rs object_id: extract ObjectId trait and macros to separate module 2024-01-05 10:20:57 +09:00
settings.rs object_id: make ObjectId constructors non-trait methods 2024-01-05 23:36:57 +09:00
signing.rs sign: Define signing backend API and integrate it 2023-11-30 23:36:56 +02:00
simple_op_heads_store.rs object_id: extract ObjectId trait and macros to separate module 2024-01-05 10:20:57 +09:00
simple_op_store.rs op_store: add special case for root id resolution 2024-01-16 21:46:54 +09:00
stacked_table.rs index, stacked_table: inline read_u32::<LittleEndian>() 2023-12-23 00:14:17 +09:00
store.rs backend: pass Index and keep_newer timestamp parameters to gc() 2024-01-27 10:18:11 +09:00
str_util.rs
submodule_store.rs
transaction.rs op heads: remove promote_new_op() 2023-12-28 09:17:42 -08:00
tree.rs object_id: extract ObjectId trait and macros to separate module 2024-01-05 10:20:57 +09:00
tree_builder.rs repo_path: change .split() and .parent() to return &RepoPath 2023-11-29 08:41:23 +09:00
view.rs view: drop tracking of public heads 2024-01-13 22:23:57 -08:00
working_copy.rs workspace: combine working copy functions into a trait 2024-01-25 11:46:07 -08:00
workspace.rs workspace: support creating shares of custom workspaces 2024-01-25 11:46:07 -08:00