Thread (25 messages) flat view 25 messages, 5 authors, 2016-06-15

Re: [TOY PATCH] filter-branch: add option --delete-unchanged

From: Felipe Contreras <hidden>
Date: 2016-06-15 22:45:21

On Fri, Aug 8, 2008 at 11:10 PM, Thomas Rast [off-list ref] wrote:
With --delete-unchanged, we nuke refs whose targets did not change
during rewriting.  It is intended to be used along with
--subdirectory-filter to clean out old refs from before the first
commit to the filtered subdirectory.  (They would otherwise keep the
old history alive.)

Obviously this is a rather dangerous mode of operation.

Note the "sort -u" is required: Without it, --all includes
'origin/master' twice (from 'origin/master' and via 'origin/HEAD'),
and the second pass concludes it is unchanged and nukes the ref.
This is really useful, why isn't it merged?

Personally I use filter-branch to, duh, filter a branch, so I don't
want the commit objects that are not filtered, nor the refs to them.

-- 
Felipe Contreras
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help