Skip to content

Commit f867bb6

Browse files
committed
git-filter-repo.txt: document mapping output
Useful commit and reference mappings are created on every run. These are helpful in a number of situations, and should be documented so that end-users and Git hosts can understand how to use the output. The commit-map is particularly useful for Git hosts to override retention mechanisms, like hidden refs. This allows end-users to purge large files and sensitive data. Signed-off-by: James Ramsay <[email protected]>
1 parent eb9ea17 commit f867bb6

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Documentation/git-filter-repo.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,38 @@ Miscellaneous options
332332
--quiet::
333333
Pass --quiet to other git commands called.
334334

335+
OUTPUT
336+
------
337+
338+
Every time filter-repo is run, files are created in the `.git/filter-repo/`
339+
directory. These files overwritten unconditionally on every run.
340+
341+
Commit map
342+
~~~~~~~~~~
343+
344+
The `.git/filter-repo/commit-map` file contains a mapping of how all
345+
commits were (or were not) changed.
346+
347+
* A header is the first line with the text "old" and "new"
348+
* Commit mappings are in no particular order
349+
* All commits in range of the rewrite will be listed, even commits
350+
that are unchanged (e.g. because the commit pre-dated when the
351+
large file(s) were introduced to the repo).
352+
* An all-zeros hash, or null SHA, represents a non-existant object.
353+
When in the "new" column, this means the commit was removed
354+
entirely.
355+
356+
Reference map
357+
~~~~~~~~~~~~~
358+
359+
The `.git/filter-repo/ref-map` file contains a mapping of which local
360+
references were changed.
361+
362+
* A header is the first line with the text "old" and "new"
363+
* Reference mappings are in no particular order
364+
* An all-zeros hash, or null SHA, represents a non-existant object.
365+
When in the "new" column, this means the ref was removed entirely.
366+
335367
[[FRESHCLONE]]
336368
FRESH CLONE SAFETY CHECK AND --FORCE
337369
------------------------------------

0 commit comments

Comments
 (0)