From 0e8a11aa6009d985f340ca66c0464b76fa92ef0c Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Fri, 15 Mar 2019 17:15:39 -0700 Subject: [PATCH] filter-repo: add a reminder comment in case I ever use --full-tree Signed-off-by: Elijah Newren --- git-filter-repo | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/git-filter-repo b/git-filter-repo index 45d2a0e..270716e 100755 --- a/git-filter-repo +++ b/git-filter-repo @@ -2805,6 +2805,11 @@ class RepoFilter(object): # Filter or rename the list of file changes new_file_changes = {} for change in commit.file_changes: + # NEEDSWORK: _If_ we ever want to pass `--full-tree` to fast-export and + # parse that output, we'll need to modify this block; `--full-tree` + # issues a deleteall directive which has no filename, and thus this + # block would normally strip it. Of course, FileChanges() and + # _parse_optional_filechange() would need updates too. if change.filename in self._newnames: change.filename = self._newnames[change.filename] else: