Re: Truncating and cleaning a imported git repositary to make it more usable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 28, 2008 at 04:03:18PM +0000, Alex Bennee wrote:

> >  ajb@pitcairn:/export/git/fresh.git$ git-filter-branch --tree-filter
> >  'rm -rf big_dira big_dirb' dev-branch
> >  warning: refname 'dev-branch' is ambiguous.
> >  Which ref do you want to rewrite?

You have two refs called dev-branch. Probably both a tag and a branch
(i.e., refs/heads/dev-branch and refs/tags/dev-branch). You can
disambiguate by saying "heads/dev-branch").

> Ignore me. Not sure why but:
> 
> git-checkout dev-branch
> git-filter-branch --tree-filter  'rm -rf big_dira big_dirb' HEAD

git-checkout prefers branches to tags[1], so there is no ambiguity. It
puts the full refname (refs/heads/dev-branch) into your HEAD, so there
is no ambiguity when saying "HEAD".

[1] Actually, the upcoming builtin-checkout no longer behaves this way,
and will complain about the ambiguity.

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux