Re: [RFC PATCH 1/2] add a --delete option to git push

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Friday, August 14, 2009 - 12:51 am

Junio C Hamano <gitster@pobox.com> writes:


One more thing.  I suspect that adding --delete and nothing else probably
makes things worse than not doing anything.

In a mental model where "push there --delete $branch" is natural, there
are branches on the other side, and when you run 'push' command, you name
the special operation, 'delete', that you would want to inflict on them.

In such a world, there probably are other (perhaps not so special)
operations you can inflict on the branches on the other side as well.
They are probably called something like:

	push there --create $branch $commit
	push there --update $branch $commit

If you give them only --delete without completing the vocabulary by giving
these operations as well, you would force people to mix "git native" world
model (i.e. there is no "mode" nor "opration"; there is only "list of
instructions, each of which encodes the equivalent of 'mode'") with this
Hg-inspired world model.


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH 0/2] add a --delete option to git push, Sverre Rabbelier, (Thu Aug 13, 10:05 pm)
[RFC PATCH 1/2] add a --delete option to git push, Sverre Rabbelier, (Thu Aug 13, 10:05 pm)
[RFC PATCH 2/2] test that git push --delete deletes the re ..., Sverre Rabbelier, (Thu Aug 13, 10:05 pm)
Re: [RFC PATCH 1/2] add a --delete option to git push, Sverre Rabbelier, (Thu Aug 13, 11:24 pm)
Re: [RFC PATCH 1/2] add a --delete option to git push, Sverre Rabbelier, (Thu Aug 13, 11:40 pm)
Re: [RFC PATCH 1/2] add a --delete option to git push, Junio C Hamano, (Thu Aug 13, 11:53 pm)
Re: [RFC PATCH 1/2] add a --delete option to git push, Sverre Rabbelier, (Fri Aug 14, 12:05 am)
Re: [RFC PATCH 1/2] add a --delete option to git push, Junio C Hamano, (Fri Aug 14, 12:51 am)
Re: [RFC PATCH 0/2] add a --delete option to git push, Jakub Narebski, (Fri Aug 14, 1:50 am)
Re: [RFC PATCH 0/2] add a --delete option to git push, Jakub Narebski, (Fri Aug 14, 1:25 pm)
Re: [RFC PATCH 1/2] add a --delete option to git push, Junio C Hamano, (Fri Aug 14, 7:01 pm)
Re: [RFC PATCH 1/2] add a --delete option to git push, Sverre Rabbelier, (Sat Aug 15, 7:30 pm)
Re: [RFC PATCH 1/2] add a --delete option to git push, Jakub Narebski, (Sun Aug 16, 2:19 am)