1 Mar 2011 01:11
Re: git diff: add option for omitting the contents of deletes
Junio C Hamano <gitster <at> pobox.com>
2011-03-01 00:11:55 GMT
2011-03-01 00:11:55 GMT
Junio C Hamano <gitster <at> pobox.com> writes: > Jeff King <peff <at> peff.net> writes: > >> I'm not quite sure what lossage you mean. On the recipient's end? They >> can just "git revert", no? This is beating on a dead horse, but in my previous life, in a project I wasn't deeply involved in, a deployment procedure used was to: - give git-archive tarball of a major release to the target machine that does not have git repository, and extract the tarball; - maintain 'maint' branch, and show the tip of 'maint' on a test server, but give the client vetoing power on individual changes; - hence ending up preparing a format-patch output for selected changes, and running git-apply on the target machine to update it. The -M/-C options would have worked well in this scenario, including the recovery from "oops--that didn't work, please revert asap" (I don't know if they actually used -M/-C when preparing the incremental updates, though). The -D option does not have the same reversibility. I am (have been) only reacting to the earlier statement by Michael that -D is the same as -M/-C and reversibility does not matter. It does in such a situation. Now that the project with that deployment procedure is totally behind me, I probably shouldn't care too much about such a workflow, but I suspect(Continue reading)
RSS Feed