Re: [PATCH/RFC] Make "git remote rm <remote>" remove file refs/remotes/<remote>/HEAD
- From
- Teemu Likonen <tlikonen@iki.fi>
- Date
- Mar 8, 2008, 06:16 UTC
- Message-ID
- <200803080816.10811.tlikonen@iki.fi>
- In-Reply-To
- <7vlk4uyoln.fsf@gitster.siamese.dyndns.org>
Junio C Hamano kirjoitti:
Show 11 quoted lines
> Junio C Hamano <gitster@pobox.com> writes: > > I think "update-ref -d" should remove the ref without dereferencing > > anyway. How about not doing your patch at all (you would need to > > manually remove the symref in "prune" codepath as well), and > > instead doing this? > > > > I do not know how this reacts when the tracked HEAD points at a ref > > that lexicographically sorts earlier, say branch "A". > > And it turns out it does not react very well. You would want to do > something like this on top of that one.
This turned out to be much more complicated than just deleting a file. Thank you, these patches seem to work (at least from user's point of view).