From: Johannes Schindelin Date: Mon, 23 Jul 2007 17:34:13 +0000 (+0100) Subject: filter-branch: Big syntax change; support rewriting multiple refs X-Git-Tag: v1.5.3-rc3~17 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/dfd05e38f07f76505158399cc433b0b1870a769a?ds=sidebyside;hp=dfd05e38f07f76505158399cc433b0b1870a769a filter-branch: Big syntax change; support rewriting multiple refs We used to take the first non-option argument as the name for the new branch. This syntax is not extensible to support rewriting more than just HEAD. Instead, we now have the following syntax: git filter-branch [...] [] All positive refs given in are rewritten. Yes, in-place. If a ref was changed, the original head is stored in refs/original/$ref now, for your inspecting pleasure, in addition to the reflogs (since it is easier to inspect "git show-ref | grep original" than to inspect all the reflogs). This commit also adds the --force option to remove .git-rewrite/ and all refs from refs/original/ before filtering. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano ---