Thread (1 message) 1 message, 1 author, 2016-07-14

Re: Server-side preventing some files from being overwritten

From: Junio C Hamano <hidden>
Date: 2016-07-14 19:10:28

Thorsten Glaser [off-list ref] writes:
On Thu, 14 Jul 2016, Junio C Hamano wrote:
quoted
Can't this become simpler, e.g.

	if ! git diff-tree --quiet "$old" "$new" -- "$subdir"
Thought about diff-tree, but additions are permitted,
	diff-tree -r --diff-filter=a "$old" "$new" -- "$subdir" 

or something like that?
and diffing the actual file content has overhead too.
It is why exactly "diff-tree" is desired here, as you do not have to
diff actual file at all.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help