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

Re: git diff: add option for omitting the contents of deletes

From: Mart Sõmermaa <hidden>
Date: 2016-06-15 22:50:43

Possibly related (same subject, not in this thread)

On Tue, Mar 1, 2011 at 2:11 AM, Junio C Hamano [off-list ref] wrote:
In any case, a minimum patch to give what Mart wanted to see would
probably look like this.  I'll leave bugfixes, documentation and tests to
the readers ;-).
The minimum looks to be the optimum -- IMHO this is entirely sufficient,
thank you very much!

What would the bugfixes be (i.e. do you have any doubts about the
implementation)?
The change looks quite straightforward, to the point and bug-free to my eyes.

I try to get to writing tests ASAP.

As for the documentation, would the following section be sufficient in
Documentation/diff-options.txt?

-D::
--irreversible-delete::
	Omit file contents when file has been deleted and only
	output the header. This is useful during diff review
	but should not be used in actual patches as these would
	be non-reversible due to the omitted file contents.

Best regards and warm thanks once more,
MS
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help